[IMP] account: improve discount fields in move view
As of now, the discount field is either only shown in debug mode or if the sale module is installed and a setting is set in sale. This field should be shown in the view, and not depend on a setting from another app. This is especially true as it could be filled by the ocr or when uploading from an edi, and it would be inconsistent if the user couldn't display it. Task id #2758965 closes odoo/odoo#85737 X-original-commit: eb1a77753debdb034ad00ce10d908f4b9ee264ad Signed-off-by: Josse Colpaert <jco@odoo.com> Signed-off-by: Nicolas Viseur <vin@odoo.com>
This commit is contained in:
@@ -1026,7 +1026,7 @@
|
||||
<field name="quantity"/>
|
||||
<field name="product_uom_id" groups="uom.group_uom"/>
|
||||
<field name="price_unit"/>
|
||||
<field name="discount" groups="product.group_discount_per_so_line"/>
|
||||
<field name="discount" string="Disc.%"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</group>
|
||||
<group>
|
||||
|
||||
@@ -31,9 +31,6 @@
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_move_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='invoice_line_ids']//field[@name='discount']" position="attributes">
|
||||
<attribute name="groups">product.group_discount_per_so_line</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//group[@name='sale_info_group']/field[@name='invoice_user_id']" position="after">
|
||||
<field name="team_id" kanban_view_ref="%(sales_team.crm_team_view_kanban)s"/>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user