[FIX] account: discount field shown in form view
Before this commit, when discounts were enabled (through Sales > Settings), they appeared on the Sale Orders but not in the corresponding Invoice form view. Debug mode was required to see it among the form's fields. This commit fixes it by aligning with the Sale Order behaviour and properly display the `discount` field in the form view (when the setting is enabled) without relying on the debug mode. BTW, on mobile there was no way to see the discount as it was only visible in the list view... which is replaced by the kanban on small screens. So this commit makes it available on mobile. opw-2325978 closes odoo/odoo#57499 X-original-commit: 0ad60024c326adc7e25c71eaad2f9eccab26ee99 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com> Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
This commit is contained in:
@@ -869,7 +869,7 @@
|
||||
<field name="quantity"/>
|
||||
<field name="product_uom_id" groups="uom.group_uom"/>
|
||||
<field name="price_unit"/>
|
||||
<field name="discount" groups="base.group_no_one"/>
|
||||
<field name="discount" groups="product.group_discount_per_so_line"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</group>
|
||||
<group>
|
||||
|
||||
Reference in New Issue
Block a user