Purchase 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 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 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 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 Articlehow to call a fucnction in related field?????????
is there any possibility to call a function in a related field????how???
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 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 Articlei 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 Articleform functions in openerp7
HI, i have a form i would like when i create an object in this form in the same time i execute a method which create another object in another table
View ArticleFunctions in openErp
Hi can anyone guide me in creating functions in open ERP with simple examples. Thank you in advance. Errors that i get when try to add function: No handler found.
View ArticleFunction _get_default_shop
Hi, in the module sale, the default value on shop_id is _get_default_shop i want to change this default value shop_ids[0] ==> shop_ids[1] def _get_default_shop(self, cr, uid, context=None):...
View Articlefields function type selection
Hi Buddies. Good morning. I am trying this from the couple of days but no luck.. I read the data from the table and split that into selection fields list and try to return through the function.. The...
View Articlecannot find create function
It might be a simple question for you..i am new to openerp and i need to override the save button inside WAREHOUSE->DELIVERYORDERS->PRODUCTINLINE(i.e:additem) ,unfortunately i couldn't find the...
View ArticleHow to call function in char
Hi, I have a small problem I create a char field I can fill in this field, for example: self.pool.get ('product.product'). _MyFunction (self, amount) this Function exists on. My question is: how can I...
View Articleexplain how to use related field in (country->state->city) example
hi, i m read this documentation. and found the related field so i want to understand actually how to use related field in country->state->city example.
View ArticleError in function to update a stock?
Hi, I wrote a function to update my stock equipment. In fact I have 3 classes, one that contains all my equipment, which contains a point of the stock and the last which allows for supply, I put the...
View ArticleFunction for Wizard ???
How could I create a wizard, whose function is to select a date and a value and copy it to another date. suppose it is a film that has a session with some values (room, time, film), and this by a...
View ArticleHow put my function into custom report
Hi boys, I have created custom module with 2 custom reports in sale.order object. I use openoffice for report edit. Now I need use custom python function for some fields in this report. (convertion of...
View ArticleIs it easy to duplicate entire sections and functionality in v7 (such as...
I would like to know if it is possible to easily duplicate certain sections of the site. For example, I would like to copy "Opportunities" into a new section, leaving Opportunities intact, but have a...
View ArticleHow to do Quick Menu Search in openerp 7?
Is there a way or module do a quick search for functionality? It will save a lot of time. TQ
View Article