mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add chart hierarchy
This commit is contained in:
@@ -51,7 +51,6 @@ class AccountChartTemplate(models.Model):
|
|||||||
return {
|
return {
|
||||||
'name': _('Liquidity Transfer'),
|
'name': _('Liquidity Transfer'),
|
||||||
'code': new_code,
|
'code': new_code,
|
||||||
'parent_id': self.id,
|
|
||||||
'user_type_id': current_assets_type and current_assets_type.id or False,
|
'user_type_id': current_assets_type and current_assets_type.id or False,
|
||||||
'reconcile': True,
|
'reconcile': True,
|
||||||
'chart_template_id': self.id,
|
'chart_template_id': self.id,
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
<field name="inherit_id" ref="account.view_account_search"/>
|
<field name="inherit_id" ref="account.view_account_search"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//group" position="inside">
|
<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>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user