[IMP] account, account_asset: account move views with assets

This PR add a new page "Accounting Documents" with the journal entry, the list view asset_id and the statement_line_id. This make the first page more concise and allow the related asset to be more visible and simple to work with.

closes odoo/odoo#107205

Task-id: 3075466
Related: odoo/enterprise#34642
Signed-off-by: John Laterre (jol) <jol@odoo.com>
This commit is contained in:
maximilien(malb)
2022-12-05 14:04:08 +01:00
parent 5dd5dd2669
commit d151158637
+8 -4
View File
@@ -30,10 +30,6 @@
<field name="balance" readonly="1"/>
<field name="quantity" readonly="1"/>
</group>
<group string="Accounting Documents">
<field name="move_id" readonly="1"/>
<field name="statement_line_id" readonly="True" attrs="{'invisible': [('statement_line_id','=',False)]}"/>
</group>
<group string="Dates">
<field name="date" groups="account.group_account_readonly"/>
<field name="date_maturity"/>
@@ -79,6 +75,14 @@
<field name="date" invisible="1"/>
<field name="analytic_line_ids" context="{'tree_view_ref':'analytic.view_account_analytic_line_tree', 'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}"/>
</page>
<page string="Accounting documents">
<label for="move_id" string="Journal Entry"/>
<field name="move_id" readonly="1" nolabel="1"/>
<group readonly="1" attrs="{'invisible': [('statement_line_id','=',False)]}">
<label for="statement_line_id" string="Originator Statement Line"/>
<field name="statement_line_id"/>
</group>
</page>
</notebook>
</sheet>
</form>