Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to make workflow transitions in OpenERP/Odoo ?

To make workflow transitions in OpenERP/Odoo ? If you want to make workflow transitions in OpenERP(Odoo) follow the below mentioned code and paste it in your workflow_xml file: <record id="trans_idea_draft_confirmed" model="workflow.transition"&

How to show a menu badge in OpenERP/Odoo?

If you want to show a menu badge in OpenERP/Odoo then you should follow the below code:   class Shiva(models.Model): _name = 'Shiva' _inherit = ['ir.needaction_mixin'] STATES = [ ('healthy', "Healthy Shiva"),

How to check access and use superuser in OpenERP(Odoo)?

Step-1 Install sales module. Step-2 After that sales module. In below example, I have customized sales module. You can directly use the below sales module in your addons and run in Odoo server. from openerp.osv import fields, osv from openerp.to

How to create an osv_memory wizard systems in Odoo-9 ?

In osv_memory wizard, just create a normal object, But in place of inheriting from model.model you should it from Inherit from model.model_memory. Methods of “wizard” are inside the object and if the wizard is complex, You can define workflow on ob

How to find BoM for particular product and product_uom in Odoo?

In Odoo first, we have to create own modules and then create a function to find the BOM in our own modules. After this, we will search product on the basis of the product_tmpl_id and relate it to the BOM.  Here, product_uom is the Unit of mea

How to change password of any user from admin login in OpenERP(Odoo)?

If you want to change password of any user from admin login in OpenERP(Odoo) follow the below mentioned steps:- Step-1 Go to Setting Menu and click it. Step-2 Go to users->users->Chek user Step-3 Go to More Menu-> Change Password.

How to define class and attributes in OpenERP/Odoo ?

If you want to define class and attributes in OpenERP use below code - from osv import osv, fields class travel_hostel(osv.osv): _name = ’travel.hostel’ _inherit = ’res.partner’ _columns = { ’rooms_id’: fields.one2many(’travel.room’, ’hostel_id’, ’

How to define the _sel_ function in OpenERP/Odoo ?

If you want to make the _sel_ function in OpenERP use below code - def _sel_func(self, cr, uid, context={}): obj = self.pool.get(’Test.relation.model’) ids = obj.search(cr, uid, []) res = obj.read(cr, uid, ids, [’Demo’, ’id’], context) res = [(r[’id

How to define Functional field in OpenERP/Odoo ?

If you want to define Functional field in OpenERP use below code - class Demo1 (osv.osv): _name = ’Demo1’ _description = ’Contract’ _columns = { ’name’ : fields.char(’Contract Name’, size=30, required=True), ’employee_id’ : fields.many2one(’employee

How to define many2many field in OpenERP/Odoo ?

If you want to define many2many field in OpenERP use like below code - class test (osv.osv): _inherit='sale.order.line' _columns={ 'product1_cat':fields.char('product academy'), 'product&_cat':fields.many2one('produc

1 27 38
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: