Where is pool.get() defined in OpenERP source?
By looking at addons, that come with OpenERP source, one can tell that self.pool.get('model.name') is frequently used in model methods. Where is this "pool" and "get()" defined in OpenERP source code?...
View ArticleAre the ORM methods (search, browse) recursion safe?
We have this scenario where users define a formula, and then they can include it in a new formula by referencing its code, this operation can ocurr (currently) limitless times. Based on the analyses...
View Articlesearch method : "is not null" criteria
How to call search method with "is not null" criteria : picking_pool.search(cr, uid, [('sale_id','is not','null')], context=context) (I know that's not the good syntax)
View ArticleWhat does OSV mean in OpenERP modules?
I came across the word "osv" in almost all the OpenERP modules. What does it stand for? Has it something to do with the OpenERP Object Relational Mapper?
View ArticleTutorial that explains interaction with the OpenERP ORM?
I am in process of writing OpenERP modules and want to learn how: (1) To be able to create model objects (2) Store data or records in them via an API. (3) Query them to retrieve data. (Just like we do...
View ArticleWhat is a ORM Framework OpenERP 7 ?
SqlAlchemy or Django .? or its own one.because I'm confuse with its' fetching codes sometimes
View Articlewhy does orm load() method mark external ids as noupdate=False by default ?
Hi, In the process of loading big amount of data into tables, I noticed that when restarting the server updating my custom module, the data previously entered was deleted from the database...
View ArticleHow to develop an OpenERP-like website, without OpenERP?
Is there some sort of tutorial or getting started guide for developing a PostgreSQL backed web site with the OpenERP V7 technological platform, that uses **nothing** of OpenERP itself? For example, I...
View ArticleHow to use ORM methods, to get the required data ?
I need to get the value of field in a tree view of the fields_view_get method and a I use ORM methods to achieve this. my code : class res_partner(osv.osv): _inherit = 'res.partner' def...
View Articleconcurrent update on same record
problem is first read the record and take the necessary data. after that update that record. that time shows the concurrent update error. anyone should any idea to solve? if have send this mail,...
View ArticleExplain fields.property()
Hello, I can't find documentation on fields.property() type of fields. How do they work? As an example: In OpenERP 7, /addons/stock/product.py, starting from line 484 there are property() fields...
View ArticleTimeout in Search with a lot of product
Hi, we have 85000+ products mainly because we have many variable for the same product. Multiple width, height and material which translate in a lot of product. Our problem is that with that when we try...
View ArticleHow is qty on hand calculated?
I'm writing an application to speed up the product import procedure, but I'm stuck on the qty on hand part. It appears this is a calculated field (?) and there is no way to insert it directly into a...
View ArticleWhy pool.get(model) is used to get a model instance instead of pool[model]?
In almost all uses of `self.pool.get(model)` the `None`return value (missing model) is not handled. This usually leads to a very confusing exception later in other place in the form `AttributeError:...
View ArticleWhat controls existence of Duplicate function in OpenERP7?
I have created a custom module that defines several new models. Some of my custom models should not be duplicated and others should... Of all these models the More drop-down displays the Duplicate...
View ArticleAvailable Serial numbers for move lines
Hi, Im triying to get from stock_moves the serial numbers that are available (( in + internal) not in (out)). the serial number is the name from the table stock.production.lot. I added two variables...
View Articleno sorting required in read_group
Hi, I'm trying to use the read_group method of the ORM but it seems to forcefully apply alphabetical sorting in the table which i do not want. I need them to appear in the order they are in the table....
View ArticleDefault fields in PostgreSQL in OpenERP v7.
I have some issue regarding date field like create_date, write_date in OpenERP v7. 1: How OpenERP creating id, create_uid, create_date, write_uid and write_date by default in each module. 2: How can i...
View ArticleErrors related to openerp.netsvc after bzr pull...
I am getting the following in my Server on SSH after a BZR pull Warning active (database name) openerp.osv.orm : Access Denied by record ruls for operation Error active openerp.netsvc: Access Denied...
View ArticleHow to write ORM -Search method where Condition ?
Hello, I have override search method and I wanted to filter out sales Order with following Condition. Condition / search criteria : [ state ='RESERVED' OR (state ='SHIPPED' AND avail='YES') AND...
View Articlecreation/update: a mandatory field is not correctly set
I do an item "Lectura" with the id of "Jornada" and when there isn't the "Jornada" I do it and then do the "Lectura", but I get the error: - creation/update: a mandatory field is not correctly set...
View ArticleNew record created but not saved in table
Hello, I am trying to create a new record to the mail.message table with a new module that I installed. When I run the method, I get a new record id when i use the create() orm method, but the actual...
View Articlecreation/update: a mandatory field is not correctly set
I do an item "Lectura" with the id of "Jornada" and when there isn't the "Jornada" I do it and then do the "Lectura", but I get the error: - creation/update: a mandatory field is not correctly set...
View ArticleIs there an OpenERP ORM that transform the Database model to Object model...
i'm looking for a ORM that can transform the Database model to the OpenERP object model
View ArticleOpenERP function field xmlrpc vals
I'm trying to create a function many2one field this field is evaluated based on procession some other fields but I can't access **vals** dictionary inside the function to be evaluated. 'function' :...
View ArticleHow can we browse table to fetch record without cursor
Hi All, I'm using OpenERP-7 in one of my projects and using the ORM feature accessing records from different tables. After investigating the existing codes and going through different forums over web,...
View Articlewrite/create id database
Hello, I'm writing a module for OpenERP, and I notice that OpenERP create, in the database, the fields create_uid, write_uid etc. How can I read it directly from OpenERP?
View Articleorm.Model browse method memory limit?
Hello, I have a problem regarding a ir.cron task that runs by a bunch of assets and tries to post them automatically. Said method runs perfectly with 700 depreciation lines but when i take to...
View ArticleCorrect way: Browse vs Search ?
Hi, I have found in official addons that even though a record has a reference to other records (like one2many), and they already have a browse record with the required information, the programmer still...
View Articlevolatile model for view
Hello, It is possible on OpenERP to do a Volatile model? I want a model that is capable to write on various others modules and have a related view, but without create a table on the database. Regards
View Article