add chart hierarchy

This commit is contained in:
ivan deng
2018-12-14 20:07:17 +08:00
parent 6511da7a53
commit b83b0ed189
2 changed files with 1 additions and 2 deletions

View File

@@ -51,7 +51,6 @@ class AccountChartTemplate(models.Model):
return {
'name': _('Liquidity Transfer'),
'code': new_code,
'parent_id': self.id,
'user_type_id': current_assets_type and current_assets_type.id or False,
'reconcile': True,
'chart_template_id': self.id,

View File

@@ -43,7 +43,7 @@
<field name="inherit_id" ref="account.view_account_search"/>
<field name="arch" type="xml">
<xpath expr="//group" position="inside">
<filter string="Group" name="accountgroup" domain="" context="{'group_by':'group_id'}"/>
<filter string="Group" name="account_group" domain="" context="{'group_by':'group_id'}"/>
</xpath>
</field>
</record>