It is even worse than what you think.

Just take a look at this example with the analytic accounts 
(account.analytic.account). These are several different names given to 
(one2many) fields referencing analytic accounts: 

analytic_account_id - used for example on account move lines (account module):
        'analytic_account_id' : 
fields.many2one('account.analytic.account', 'Analytic Account'),

account_analytic_id - used for example on invoice lines (account module):
        'account_analytic_id':  
fields.many2one('account.analytic.account', 'Analytic Account'),
     
analytic_id: used on analytic distributions from the account_analytic_default 
module:
        'analytic_id': 
fields.many2one('account.analytic.account', 'Analytic Account'),

account_id: used for example on the analytic lines (account module)
        'account_id' : 
fields.many2one('account.analytic.account', 'Analytic Account', 
required=True, ondelete='cascade', select=True),

analytic_account: used on the human resource expense sheets (hr_expense module):
        'analytic_account': 
fields.many2one('account.analytic.account','Analytic account'),

project_id: used on the sale orders (sale module)
        'project_id': 
fields.many2one('account.analytic.account', 'Analytic Account', 
readonly=True, states={'draft': [('readonly', 
False)]}),

category_id: used on the projects (project module):
        'category_id': 
fields.many2one('account.analytic.account','Analytic Account', help="Link 
this project to an analytic account if you need financial management on 
projects. It enables you to connect projects with budgets, planning, cost and 
revenue analysis, timesheets on projects, etc."),


As you can see, even on a single module (account) three different names are 
used! (BTW, I would vote for using "analytic_account_id" only).

------------------------
Borja López Soilán
Pexego - www.pexego.es




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=60604#60604

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to