
Search In
To get small image in product module first inherit the product.product object in product module and add one fields like image_small and write the fucntion _get_image in your own module in openerp.
for example you can use the below fucntion in .py fil
To configure and check weather the company is single or double in openerp you have to write this function in your own module in .py file,
def check&_companyuniq(self, cr, uid, ids, context=None):
sr_id = self.search(cr,uid,[],context=con
In openerp first install the resource module and inherit the object of resource.calendar and If no calendar is provided, just return the previous day and day of a resource.calendar. If calendar resource is no given simply remove one day from the subm
In below example I have written Python script to the partner's sale currency . Use below python code in .py file :
for order in self.pool.get('pos.order').browse(cr, uid, ids, context=context):
if order.invoice_id:
i
OpenERP/Odoo is as secure as any other enterprise standard business application, and the architecture gives you many advantages to deploy applications over the Cloud infrastructure.
We have been getting many queries about "How secure is OpenERP/Odoo?
In Odoo first we create existing own module and inherits the account invoice object in your own module. Than fetch all object like as a account.move , account.journal, account.period in your own module and update the account.journal and also invoice_
To Override the base.stage method in project module and Parameter of the stage search taken from the lead and also section_id if set, stages must belong to this section or be a default stage; if not set, stages must be default stages in project modul
In below example I have written Python script to Include the default begin date in OpenERP. You can directly use the below sales module in your addons and run in Odoo server.
from openerp.osv import fields, osv
from openerp.tools.tr
In the search_count function returns the count of results matching search domain:
In below code i have explain search_read
self.search_count([('is_company', '=', True)])
Note -with the help of this code we retrieve all adress.
Api.model will convert old API calls to decorated function to new API signature. It allows to be polite when
migrating code.
The below code you can use in your .py file .
@api.model
def afun(self):
pass
Note- Model.api will automatically convert it