diff --git a/product.py b/product.py index e8f6056bc0..0fc087f59e 100644 --- a/product.py +++ b/product.py @@ -9,14 +9,12 @@ class Category(OSV): account_expense = fields.Property(type='many2one', relation='account.account', string='Account Expense', - group_name='Accounting Properties', view_load=True, domain="[('kind', '=', 'expense'), ('company', '=', company)]", states={ 'invisible': "not company", }) account_revenue = fields.Property(type='many2one', relation='account.account', string='Account Revenue', - group_name='Accounting Properties', view_load=True, domain="[('kind', '=', 'revenue'), ('company', '=', company)]", states={ 'invisible': "not company", @@ -35,16 +33,14 @@ class Template(OSV): _name = 'product.template' account_expense = fields.Property(type='many2one', - string='Account Expense', group_name='Accounting Properties', - view_load=True, relation='account.account', + string='Account Expense', relation='account.account', domain="[('kind', '=', 'expense'), ('company', '=', company)]", states={ 'invisible': "not company", }, help='This account will be used instead of the one defined ' \ 'on the category.') account_revenue = fields.Property(type='many2one', - string='Account Revenue', group_name='Accounting Properties', - view_load=True, relation='account.account', + string='Account Revenue', relation='account.account', domain="[('kind', '=', 'revenue'), ('company', '=', company)]", states={ 'invisible': "not company", diff --git a/product.xml b/product.xml index 1cc84b52eb..370de5171a 100644 --- a/product.xml +++ b/product.xml @@ -11,9 +11,13 @@ this repository contains the full copyright notices and license terms. --> - + expr="/form/notebook/page[@string="Childs"]" + position="after"> + +