diff options
| author | Florian Gilbert <flg@odoo.com> | 2021-02-26 06:42:55 +0000 |
|---|---|---|
| committer | Florian Gilbert <flg@odoo.com> | 2021-02-26 06:42:55 +0000 |
| commit | 97fb335e3f70a55b18685b9b6b08fe0162e1a17b (patch) | |
| tree | be9b56d4aa86c2edbb41db9b8bcdac32a98c6241 | |
| parent | 86e2c6b7126e2e73f5acfc7ebfee490808a70df7 (diff) | |
[FIX] account_fleet: Adding vehicle_id for in_refund.
Field vehicle_id is missing on the account.move.line view of refunds.
This fix updates the domain to make visible the field in in_refund.
Task ID: #2466914
closes odoo/odoo#66892
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
| -rw-r--r-- | addons/account_fleet/views/account_move_views.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account_fleet/views/account_move_views.xml b/addons/account_fleet/views/account_move_views.xml index eb7a1d3cd0e..e4c86d01703 100644 --- a/addons/account_fleet/views/account_move_views.xml +++ b/addons/account_fleet/views/account_move_views.xml @@ -7,11 +7,11 @@ <field name="arch" type="xml"> <xpath expr="//field[@name='line_ids']//field[@name='account_id']" position="after"> <field name='need_vehicle' invisible='1'/> - <field name='vehicle_id' attrs="{'required': [('need_vehicle', '=', True), ('parent.move_type', '=', 'in_invoice')], 'column_invisible': [('parent.move_type', '!=', 'in_invoice')]}" optional='hidden'/> + <field name='vehicle_id' attrs="{'required': [('need_vehicle', '=', True), ('parent.move_type', 'in', ('in_invoice', 'in_refund'))], 'column_invisible': [('parent.move_type', 'not in', ('in_invoice', 'in_refund'))]}" optional='hidden'/> </xpath> <xpath expr="//field[@name='invoice_line_ids']//field[@name='account_id']" position="after"> <field name='need_vehicle' invisible='1'/> - <field name='vehicle_id' attrs="{'required': [('need_vehicle', '=', True), ('parent.move_type', '=', 'in_invoice')], 'column_invisible': [('parent.move_type', '!=', 'in_invoice')]}" optional='hidden'/> + <field name='vehicle_id' attrs="{'required': [('need_vehicle', '=', True), ('parent.move_type', 'in', ('in_invoice', 'in_refund'))], 'column_invisible': [('parent.move_type', 'not in', ('in_invoice', 'in_refund'))]}" optional='hidden'/> </xpath> </field> </record> |
