diff options
| author | jbw <jbw@odoo.com> | 2020-03-13 06:24:53 +0000 |
|---|---|---|
| committer | jbw <jbw@odoo.com> | 2020-03-31 10:10:26 +0000 |
| commit | 04b865d2655ff8431ff0d60823ee60dbf3944d26 (patch) | |
| tree | 3eab83c9d758423d313a44daa74acf12fecad0e9 | |
| parent | 5952928b42de348c91cc61c9615fbb49e9df4146 (diff) | |
[IMP] account : set move_line "Disc%" field on optional hide
Remove groups="base.group_no_one" & set optional to "hide" on
"Disc%" to allow displaying discount field when needed.
closes odoo/odoo#47558
Task: 2214301
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
| -rw-r--r-- | addons/account/views/account_move_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 0ea18cd3a3e..3e305e539f3 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -704,7 +704,7 @@ <field name="product_uom_category_id" invisible="1"/> <field name="product_uom_id" string="UoM" groups="uom.group_uom" optional="show"/> <field name="price_unit" string="Price"/> - <field name="discount" string="Disc.%" groups="base.group_no_one" optional="show"/> + <field name="discount" string="Disc.%" optional="hide"/> <field name="tax_ids" widget="many2many_tags" domain="[('type_tax_use', '=?', parent.invoice_filter_type_domain), ('company_id', '=', parent.company_id)]" context="{'append_type_to_tax_name': not parent.invoice_filter_type_domain}" |
