
Search In
If you want generic view declaration in OpenERP(Odoo) use the below mentioned code by pasting it in your .xml file: -
<record model="ir.ui.view" id="view_id">
<field name="name">view.name</field>
<field name="model">
If you want to make Search views in OpenERP(Odoo) follow the below mentioned code and paste it in your .xml file: -
<="" field="">
<record model="ir.ui.view" id="course_search_view">
<field name="name">course.search
if your drupal installation having problem in implementing Clean URLs then please check your Apache is configured as mentioned below
Apache uses httpd.conf file for its configuration.
In order for Drupal to implement clean URLs, Apache needs t
To check product quantity in openerp
You have to write this function in .py file to check product quantity in product module and relate his to
the inventory management. See code given below
def check_product_quantity(self, cr, uid, product, quantit
To Compute the quantity invoiced If case of a refund in openerp to Compute the quantity invoiced. If case of a refund, the quantity invoiced is decreased. Note that this is the case only if the refund is generated from and function given below to us
First download a sample theme from http://yii.themefactory.net/ and extract it in to yii2basic/themes folder.
Now open /config/web.php and add the below code
'view' => [
'theme' => [
'pathMap' => ['@app/views' => 'themes/materi
To Inherit workflow in openerp
use this below code in worlflow.xml file in openerp
<record id="module_name.act_done" model="workflow.activity">
<field name="wkf_id" ref="module_name.wkf"/>
<field name="name">done</field&
Step-1 Install the Web LinkedIn module.
Step-2 After that custmozie .py(Python file) file:
In below example, I have custmozied .py file. You can directly copy the below python code in your .py file.
import openerp
import openerp.addons.web
from open
Set encoding to default and find value to get_encodings, ustr and exception_to_unicode were originally from tools.misc in openerp and use this method in openerp. Use this code in .py file in openerp
ef get_encodings(hint_encoding='utf-8'):
fallb
TO retrieve all children projects of project ids in project module and return a dictionary mapping each project to appiar its parent.id in parent project in project module (or None)in openerp. use this code given below in .py file in openerp.
def
