Quantcast
Channel: OpenERP Help - Individual question feed
Browsing all 68 articles
Browse latest View live
↧

on_change function in a Treeview

I have a function on_change in a Treeview (editable="bottom"): Example: Product Name | Qty.(on_change) | Unit Cost(on_change) | Total (readonly)...

View Article


How to solve: AttributeError 'datetime.datetime' object has no...

Hello, I am new to OpenERP development and I am trying to learn how to assign functions to fields so I can retrieve values based on my needs, but after following the manual or taking a look at the code...

View Article


[closed] open a form in a specified state : edit/browse

When opening a form from an function returning an action code as in the example below, I was wondering how could I explicitly specify the state of the form, wether it's in **edit** or **browse** mode ?...

View Article

Triggering an action from a function?

How can I have OpenERP trigger an action (Like starting a wizard or opening a view), from within a function (For example a button on a form view)?

View Article

Can I store field function with the type one2many?

Hi everybody To resolve the problem of filtring values that are **function fields** of type **one2many** I create this syntax : 'user_ids': fields.function(_get_marche_users, string='Chefs',...

View Article


Trying to show informations

I'm trying to display function fields in a sort of listview (not editable). Something like Customer Invoices in Accounting. Here is my current code. (py) I use a function field with a range, etc just...

View Article

cannot execute the function

Here is my class and methods. I just wrote for get records and need to print them.but when run openerp in debug mode.its not worked & not go for that method also.& also need to clarify the...

View Article

ValueError: SQL query parameters should be a tuple, list or dict

issues corrected def _random_letter(self, cr, uid, ids, name, args, context): num=[] for i in range(5): res = random.choice([1, 2, 3, 5, 9]) num.append(res) print (num) return num def...

View Article


How can pass current id in fields_view_get function?

hello, I need to get current ID or active_id for sales order form in fields_view_get fonction, when click in form. any idea ??? Thks

View Article


How to auto launch a function after 4 hours

Hi, I want to know how to auto launch a function 4 hours after saving a form. It is like "cron" in linux. Please HELP

View Article

postgresql functions

Hi, Is it possible to execute and get returned values from postgresql functions in openerp?

View Article

OpenERP fields.function() explanation

I got this code from stock.py file and line number 163 'complete_name': fields.function(_complete_name, type='char', size=256, string="Location Name", store={'stock.location': (_get_sublocations,...

View Article

Functional Field compute in create method?

Openerp 7.0 the below Function field code not computed in Create Method. computed only in the write method. how to function function field compute in create method? code 'additional_protection' :...

View Article


_default value depending on relation?

I'm trying to make a field's default value the result of computing some of it's related objects' fields. How can I achieve that? In this case, I have an `Item` that has multiple `Payment`s (one2many)....

View Article

How to check whether its been a month to invoice date?

I want to make a function that can check if the date of invoice is a month or more months older? Do I need to specify another variable or date? how can I do that?? Also if I make this function work in...

View Article


separate long name into several field

I have a class:>class activeuser(osv.osv):>> _name = activeuser>>_columns = {>>>'name':fields.char('Name', size=128),>>>'description_about':fields.text('About...

View Article

How can i use a python Built-in Function (e.g. sorted) in a rml file?

I want to use a python Built-in Function for example reversed() and sorted() in a rml file. I got a name is not defined error. Is there a special syntax to use python Built-in Functions or they are not...

View Article


how Fields function update

hello, I a field function stock_qty_avaible on quotation when I edited a line, I selected a product, I want to update the fields function stock_qty_avaible. I try update field stock_qty_avaible it not...

View Article

How to populate a lot of fields?

What is wrong with this function? Is supposed to retrieve the routing_id of the object mrp.production and store it in the mrp.production.workcenter.line one, but doing everything but that. Is there...

View Article

Where to add a python function so that is callable by a RML report template?

I would like to extend the "Purchase Order" RML report with custom functionality. This module can be found at: openerp\addons\purchase\report and contains the python files: __init__.py order.py...

View Article
Browsing all 68 articles
Browse latest View live