summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/account/views/account_view.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml
index c24518e15b8..f14a7701011 100644
--- a/addons/account/views/account_view.xml
+++ b/addons/account/views/account_view.xml
@@ -1623,6 +1623,27 @@
<field name="recompute_tax_line" invisible="1" readonly="1"/>
<field name="tax_line_grouping_key" invisible="1" readonly="1"/>
</tree>
+ <!-- Form view to cover mobile use -->
+ <form>
+ <group>
+ <field name="tax_line_id" invisible="1"/>
+ <field name="account_id" domain="[('company_id', '=', parent.company_id), ('deprecated', '=', False)]"/>
+ <field name="partner_id" domain="['|', ('parent_id', '=', False), ('is_company', '=', True)]"/>
+ <field name="name"/>
+ <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
+ <field name="analytic_tag_ids" groups="analytic.group_analytic_tags" widget="many2many_tags"/>
+ <field name="amount_currency" groups="base.group_multi_currency"/>
+ <field name="company_currency_id" invisible="1"/>
+ <field name="company_id" invisible="1"/>
+ <field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/>
+ <field name="debit" sum="Total Debit"/>
+ <field name="credit" sum="Total Credit"/>
+ <field name="tax_ids" string="Taxes Applied" widget="many2many_tags" domain="[('type_tax_use', '=?', parent.tax_type_domain)]" context="{'append_type_to_tax_name': not parent.tax_type_domain}" options="{'no_create': True}"/>
+ <field name="date_maturity" required="0" invisible="context.get('view_no_maturity', False)"/>
+ <field name="recompute_tax_line" invisible="1" readonly="1"/>
+ <field name="tax_line_grouping_key" invisible="1" readonly="1"/>
+ </group>
+ </form>
</field>
<field name="narration" colspan="4" placeholder="Add an internal note..." nolabel="1" height="50"/>
</page>