Skip to content
Snippets Groups Projects
Commit 6c1e8677 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#85865

Task: task-2766245
X-original-commit: c1b9c96d
Signed-off-by: default avatarRuben Gomes <rugo@odoo.com>
Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent c88ded09
No related branches found
No related tags found
No related merge requests found
......@@ -878,6 +878,8 @@
<field name="account_internal_type" invisible="1"/>
<field name="account_internal_group" invisible="1"/>
</kanban>
<!-- Form view to cover mobile use -->
<form>
<sheet>
<field name="product_uom_category_id" invisible="1"/>
......@@ -886,6 +888,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"/>
......@@ -903,6 +907,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.
Finish editing this message first!
Please register or to comment