Rohan Nayani(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-l10n-control-dev-add-parent_id-on-acc-chart-template-ron
into lp:~openerp-dev/openobject-addons/trunk-l10n-control-dev.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-l10n-control-dev-add-parent_id-on-acc-chart-template-ron/+merge/68796
=>Add parent_id field in Account.chart.template
=>Bank Account,Root Account ,Root Tax required only when there is no parent_id
of Account.chart.template
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-l10n-control-dev-add-parent_id-on-acc-chart-template-ron/+merge/68796
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-l10n-control-dev.
=== modified file 'account/account.py'
--- account/account.py 2011-07-20 06:24:43 +0000
+++ account/account.py 2011-07-22 07:11:26 +0000
@@ -2475,6 +2475,7 @@
_columns={
'name': fields.char('Name', size=64, required=True),
+ 'parent_id': fields.many2one('account.chart.template', 'Parent Chart Template'),
'account_root_id': fields.many2one('account.account.template','Root Account',required=True,domain=[('parent_id','=',False)]),
'tax_code_root_id': fields.many2one('account.tax.code.template','Root Tax Code',required=True,domain=[('parent_id','=',False)]),
'tax_template_ids': fields.one2many('account.tax.template', 'chart_template_id', 'Tax Template List', help='List of all the taxes that have to be installed by the wizard'),
=== modified file 'account/account_view.xml'
--- account/account_view.xml 2011-05-19 05:16:07 +0000
+++ account/account_view.xml 2011-07-22 07:11:26 +0000
@@ -2141,9 +2141,10 @@
<form string="Chart of Accounts Template">
<group>
<field name="name"/>
- <field name="account_root_id"/>
- <field name="bank_account_view_id"/>
- <field name="tax_code_root_id"/>
+ <field name="account_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
+ <field name="bank_account_view_id" attrs="{'required': [('parent_id', '=', False)]}"/>
+ <field name="tax_code_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
+ <field name="parent_id" />
</group>
<field name="tax_template_ids" colspan="4" readonly="1" nolabel="1"/>
<separator string="Properties" colspan="4"/>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp