How to Build a Custom Module in Odoo 16 | Odoo 16 Development Tutorials | Odoo 16 Videos – CBMS Odoo ERP

How to Build a Custom Module in Odoo 16 | Odoo 16 Development Tutorials | Odoo 16 Videos – CBMS Odoo ERP

14
0 minutes, 27 seconds Read

In this video, it explains about how to build a custom module and basic python files, models, views, and security inside a module in Odoo 16
#odoo16developmentvideos

Odoo is basically a web-based open source framework. which act as a solution for all business requirements. #odoo16videos

Odoo modules are a set of business logic that helps to enhance the functionality in odoo or to inherit the existing functionality.
#odoo16tutorials

Connect With Us:
———————-
➡️Website:
➡️Email: info@cybrosys.com
➡️Twitter:
➡️LinkedIn:
➡️Facebook:
➡️Instagram:
➡️Pinterest:

#Build #Custom #Module #Odoo #Odoo #Development #Tutorials #Odoo #Videos

Similar Posts

14 Comments

  1. avatar
    @angelaaguilar481 says:

    Hi! Great video, I have a question, do you modify or add some information to another file? The module does not install and I get the error:

    RPC_ERROR

    Odoo Server Error

    I don't know what I'm doing wrong, i hope u can help me!!

  2. avatar
    @Mustapha604 says:

    Hi i'm having an error with the activation of the module :
    Exception: Module loading School failed: file School/security/ir.model.access.csv could not be processed:
    No matching record found for external id 'model_Login_User' in field 'Model'
    Missing required value for the field 'Model' (model_id)

    Here's the .xml file
    <odoo>

    <record model="ir.ui.view" id="view_user_credentials_form">
    <field name="name">user.credentials.form</field>
    <field name="model">Login.User</field>
    <field name="arch" type="xml">
    <form string="User Credentials">
    <sheet>
    <group>
    <field name="username"/>
    <field name="password"/>
    </group>
    </sheet>
    </form>
    </field>
    </record>

    </odoo>

    Here's the .py file

    from odoo import models, fields

    class UserCredentials(models.Model):
    _name = 'Login.User'
    _description = 'User Credentials'

    username = fields.Char(string='Username', required=True)
    password = fields.Char(string='Password', required=True)

    And here's the ir.model.acces.scv
    id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
    access_user_credentials,Login.User,model_Login_User,base.group_user,1,1,1,1

  3. avatar
    @programacionbluehat says:

    Hello everyone,

    I am currently working on an Odoo 16 project and I am facing some difficulties integrating custom JavaScript code into my Odoo module.

    Here's what I've tried so far:

    Declared my JavaScript file in the manifest file under the 'assets' key.

    json

    Copy code

    'assets': {

    'web.assets_frontend': [

    'my_module/static/src/js/my_script.js',

    ],

    }

    Created a JavaScript file with Odoo's module system.

    javascript

    Copy code

    odoo.define("my_module.my_script", function (require) {

    "use strict";

    // My JavaScript logic here

    });

    Attempted to include the script directly into my XML view, which gave me an error.

    xml

    Copy code

    <head>

    <script src="/my_module/static/src/js/my_script.js"></script>

    </head>

    The above approach resulted in a "UncaughtPromiseError > InvalidButtonParamsError" error.

    Questions:

    What is the correct way to include and execute custom JavaScript code in Odoo 16?

    How can I ensure that my JavaScript code is loaded and executed only on the specific view where I need it?

    Are there any examples or documentation I should be aware of?

    Thank you for your time and assistance.

  4. avatar
    @omarali8729 says:

    i found an error when installing the addon as following

    Exception: Module loading school_managment failed: file school_managmentsecurity/ir.model.access.csv could not be processed:

    No matching record found for external id 'model_school_student' in field 'Model'

    Missing required value for the field 'Model' (model_id)

    The above server error caused the following client error:

    RPC_ERROR: Odoo Server Error

  5. avatar
    @rutvikkamani7885 says:

    i create custom module but refer your videos,
    Please check my error and get answer

    i found an error when installing the addon as following

    Exception: Module loading school_managment failed: file school_managmentsecurity/ir.model.access.csv could not be processed:

    No matching record found for external id 'model_school_student' in field 'Model'

    Missing required value for the field 'Model' (model_id)

    The above server error caused the following client error:

    RPC_ERROR: Odoo Server Error

Leave a Reply

Your email address will not be published. Required fields are marked *