
Search In
To Include only parent level class in OpenERP(Odoo) below is the method/code
In below example I have written Python script to Include only parent level class. You can directly use below python code in .py file :
def addMaterialsRecursive(componen
To copy data from account_invoice_line table in account module in PostgreSQL use this code in pgadmin and user can copy data from account_invoice_line table.
Copy account_invoice_lines
copy (SELECT *
FROM
account_invoice_lines
INNER JOIN account
To install account module and searching by name in account module in customers invoice form and get results in particular name use this code in account_invoice file in account module in openerp.
Code given below:-
def name_search(self, cr, user, n
Step-1 Go to audittrail module.
Step-2 audittrail->audittrail.py.
Step-3 After that used below code in audittrail.py file.
if self.check_rules(cr, SUPERUSER_ID, field_obj._obj, method):
x2m_model_ids = pool.get('ir.model').se
Step-1 Go to picking_invoice_relation module.
Step-2 invoice->invoice.py.
Step-3 After that used below code in invoice.py file.
if not isinstance(ids, types.ListType): # Ensure it is a list before proceeding.
ids = [ids]
If you want to create a specific page layout in OpenERP(Odoo) follow the below mentioned code in your .xml file: -
<!--?xml version="1.0" encoding="utf-8" ?-->
<openerp>
<data>
<!-- === Demo Page === -->
<templa
If you want to default option methods in OpenERP(Odoo) follow the below mentioned code in your .xml file: -
<template id="snippet_demo_opt" name="Snippet demo Options"
<a href="#">Your Option</a>
<template id="my_js"
If you want to creating templates in OpenERP(Odoo) follow the below mentioned code in your .xml file.
<openerp>
<data>
<template id="index">
<title>Academy</title>
<t t-foreach="te
Cloud computing can be described in simple words as sharing computing resources. Cloud computing opens new avenues to share resources, software, and information with linked computers and other devices as a utility over the Internet. Cloud Computing T
If you want to make field edition in OpenERP(Odoo) follow the below mentioned code and paste it in your models .py file: -
_name = 'test.demo'
name = fields.Char()
biography = fields.Html()
academy/templates.xml
<div c