Skip to content
Snippets Groups Projects
Commit c1b9c96d authored by Ruben Gomes's avatar Ruben Gomes
Browse files

[FIX] mobile: calculation of invoice lines and journal items on update


Problem :
* updating an invoice line on mobile would result in an incorrect untaxed amount, tax amount and total amount on the invoice and an incorrect entries in the journal items
* subtotal of invoice line was not showing in mobile view

Solution :
* the problem was that debit and credit fields were missing from the view so onchange were not trigger

closes odoo/odoo#84982

Task: task-2766245
Signed-off-by: default avatarRuben Gomes <rugo@odoo.com>
Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent 4c2d3e1b
Branches
Tags
No related merge requests found
......@@ -820,6 +820,8 @@
<field name="account_internal_type" invisible="1"/>
<field name="always_set_currency_id" invisible="1"/>
</kanban>
<!-- Form view to cover mobile use -->
<form>
<sheet>
<field name="display_type" invisible="1"/>
......@@ -827,6 +829,8 @@
<group>
<field name="partner_id" invisible="1"/>
<field name="company_id" invisible="1"/>
<field name="debit" invisible="1"/>
<field name="credit" invisible="1"/>
<field name="product_id" widget="many2one_barcode"/>
<field name="quantity"/>
<field name="product_uom_id" groups="uom.group_uom"/>
......@@ -844,6 +848,10 @@
<label for="name" string="Section" attrs="{'invisible': [('display_type', '!=', 'line_section')]}"/>
<label for="name" string="Note" attrs="{'invisible': [('display_type', '!=', 'line_note')]}"/>
<field name="name" widget="text"/>
<group>
<field name="price_subtotal" string="Subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
<field name="price_total" string="Total" groups="account.group_show_line_subtotals_tax_included"/>
</group>
</sheet>
</form>
</field>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment