How to make a fields.function NOT readonly?
Hi, I am trying to have a fields.function that have a default value for res_partner if it is a contact of a company, or if it is a company. But this value can be changed. So I try this: def...
View ArticlePrint report and send as email from one function?
I am looking for a code or a function or an example where a report is being printed and sent to the partner in just one step. Can anyone suggest me how to do that or give an example or a link or...
View Articlerefuse timesheet function
Hello, In the model 'hr_timesheet_sheet.sheet' I want to create a function triggered by a button that sets the Timesheet workflow to state="draft" and at the same time opens a form view, but I don't...
View ArticleHow do use a fields.funtion in one object to change one variable depending on...
Hi, I'm trying to do a fields.function in account.voucher.line that when the state of account.voucher change save some information in account.voucher.line. I've started just by saving one thing. But...
View Articleusing function in domain filter
i want to use a function's return as a domain filter. 'product_id' : fields.many2one('product.product', 'products', domain=[('id', 'in',lambda self,cr,uid,ids, context:...
View ArticleWhen choosing between model function or workflow action ?
When developing custom modules, I'm still asking what kind of methods should I choose to execute an action. For example for canceling a "stock.picking" object, you have 3 solutions: #Directly write...
View ArticleHow to use the value of a selection field instead of its key in a python...
Hi ! I have a **fields.selection**, and I want to use the **value** of this field in a python function. But, when I pass the field to this function, I get a string, the **key**... So, how can I get the...
View ArticleFunction field issue
Hi all, I have used function field and store parameter in my module. When the changes will be happen in the object related fields which we declared in store parameter, values updated in my DB but not...
View ArticleExecution order on inherited functions
Hello, I want to know if there is a specific order of execution on inherited functions. I know that If you add dependencies on your module your function is going to be called first and then the super,...
View ArticlePurchase Order Function Field Issue
I have inherited "_amount_all" function(which is the function field procedure) in purchase order. While saving the form or click the update button my functionality works properly. But my problem is...
View ArticleList of Open ERP Open Office Report Designer attributes?
Hi, I was wondering where can I get a list of Open ERP Open Office Report Designer attributes, for example, o.name in order to display the number of quote, for example, in a sales order? Thanks!
View ArticleOpenerp for law firm
Could someone share your experiences on how to implement OPENERP for a law firm? What are the modules required?
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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