i would like when i create an object in this form in the same time i execute...
Hi everyone , i have a form i would like when i create an object in this form in the same time i execute a method (Restful request) ,how can i do this? Is there any way to call a python method from the...
View ArticleAttribute error in onchange method
Hi, I have a class with an onchange method which retrieves the activity name from another model. when I run it, im getting an error like this. AttributeError: 'Field activity_name not found in...
View ArticleFunction to openERP python
Hi how to create a function in openerp I want to know the basic step help me please What is self, pool ....
View Articlehow to call a fucnction in related field?????????
is there any possibility to call a function in a related field????how???
View Articleanybody how to call a function in a related field
my filelds are def _get_total(self, cr, uid, ids, name, unknow_none, context=None): res = {} for record in self.browse(cr, uid, ids, context=context): total = 0.0 for line in record.cost_ids: total +=...
View ArticleConvert string into function
Hi I have 3 fields that contain obj_fields = 'hr.irg.calcul' function_fields = '_get_method_irg' quantity = 30000 I want to have this result : self.pool.get('hr.irg.calcul')._get_method_irg(30000) I...
View ArticleProblems overriding the same function from two different modules
We have two modules which are overriding the same function (**product_id_change** of *sale_order_line* class). One of this modules is an own module and the other is *sale_margin*. In this two...
View ArticlePurchase module, unit price reset on change of qty or uom. What needs to be...
When creating a purchase order, if you happen to change the price first then quantity or unit of measure after, the price will reset back to what it was before you changeg it (default price or 0.0). It...
View Article