
Search In
To add action and menu in Odoo
Action- There are different types of actions in Odoo:
1- Window: Opening of a new window
2- Report: The printing of a report
3- Custom Report: The personalized reports or RML Report: The XSL:RML reports
4- Ex
If you want to make wizard views in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard views_xml file:
<record id="action_idea_cleanup_wizard" model="ir.actions.act_window">
<field name="name">Cleanup</field>
QWeb is an XML-based templating language, similar to Genshi, Thymeleaf or Facelets. It has the following characteristics:
It's implemented fully in JavaScript and rendered in the browser
Each template file (XML files) contains multiple templates.
It
In onchange function first we have to go in .py file (python file)
After that we have to decide where you want to give onchange function and then give attribute on_change to that field.
Like below python code in py file :
def onchange_func
In below example I have written Python script to configure barcode. It will print one barcode on each page based on quantity available of selected products. Like below python code in .py file :
import logging
from openerp.osv import fields, orm
In below example, I have written Python script for each tax group. see below python code in .py file :
(tax_code_pos, base_code_pos, account_pos, tax_id)= (0, 1, 2, 3)
for key, tax_amount in group_tax.items():
tax = s
In below example, I have written Python script to loan/invest demand fields. Use below python code in your .py file :
'date_start': fields.date('Start Date', states={'confirm': [('readonly', True)]}),
'date_stop': fields.date('Maturity Da
To Add followers linked to new partner in OpenERP(Odoo) here is the process below-
In followers linked to new partner fields, first we have to go in .py file (Python file) After that we have to decide where we want followers linked to new partner fie
To add followers linked to new partner fields first we have to go in .py file (Python file) After that we have to decide where we want followers linked to new partner fields and then write start to end python code in .py file:
for field in fields:
In OpenERP, Tuple represents recursive relationship of type and the tuple models is a browsable model which start loading relationships type from and use it param ttypes which is a list of relationship types and follow 'one2many' and 'man