
Search In
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"&
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"),
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
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
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
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.
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’, ’
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
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
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