Quantcast
Channel: OpenERP Help - Individual question feed
Browsing latest articles
Browse All 39 View Live
↧

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 Article


Are 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 Article


search 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 Article

What 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 Article

Tutorial 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 Article


What is a ORM Framework OpenERP 7 ?

SqlAlchemy or Django .? or its own one.because I'm confuse with its' fetching codes sometimes

View Article

why 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 Article

How 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 Article


How 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 Article


concurrent 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 Article

Explain 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 Article

Timeout 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 Article

How 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 Article


Why 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 Article

What 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 Article


Available 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 Article

no 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 Article


Default 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 Article

Errors 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 Article

How 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 Article

creation/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 Article


New 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 Article


creation/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 Article

Is 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 Article

OpenERP 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 Article


How 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 Article

write/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 Article

orm.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 Article

Correct 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 Article



volatile 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
Browsing latest articles
Browse All 39 View Live