diff options
| author | Ankita Raval <anr@odoo.com> | 2020-01-16 04:54:35 +0000 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2020-01-22 15:22:02 +0000 |
| commit | 5017c8492061109745864cc68b2dc5f3bff747ae (patch) | |
| tree | f872b569ca8c614acce6bc257caebef48ff87b8d | |
| parent | f30916a8ebbff2d774984fed9e6b3e7cd8ba2606 (diff) | |
[IMP] repair: invoice after repair should hide invoice during process
The stat button for invoice should be available once the repair is done
and not before.
closes odoo/odoo#43554
Task-id: 2169622
Related: odoo/enterprise#7799
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
| -rw-r--r-- | addons/repair/views/repair_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/repair/views/repair_views.xml b/addons/repair/views/repair_views.xml index 4a9b9a3b999..1025d91157f 100644 --- a/addons/repair/views/repair_views.xml +++ b/addons/repair/views/repair_views.xml @@ -48,7 +48,7 @@ type="object" class="oe_stat_button" icon="fa-pencil-square-o" - attrs="{'invisible': ['|',('invoice_method','=','none'), ('state','in',('confirmed','2binvoiced','draft'))]}" + attrs="{'invisible': ['|', '|', '&',('invoice_method','=','after_repair'), ('state', '!=', 'done'), ('invoice_method', '=', 'none'), ('state','in',('confirmed','2binvoiced','draft'))]}" groups="account.group_account_invoice"> <div class="o_field_widget o_stat_info"> <span class="o_stat_text">1</span> |
