[IMP] delivery: archive delivery carrier
Since the field active hase been removed from the form view of carrier we were not able to archive it from there anymore. So we've added back the 'active' field in invisible on the form view, and also added a ribbon on archived records. closes odoo/odoo#39498 Task-id: 2115880 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<form string="Carrier">
|
||||
<sheet>
|
||||
<widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button name="toggle_prod_environment"
|
||||
attrs="{'invisible': ['|', '|', ('prod_environment', '=', False), ('delivery_type', '=', 'fixed'), ('delivery_type', '=', 'base_on_rule')]}"
|
||||
@@ -94,6 +95,7 @@
|
||||
</div>
|
||||
<group>
|
||||
<group name="provider_details">
|
||||
<field name="active" invisible="1"/>
|
||||
<field name="prod_environment" invisible="1"/>
|
||||
<field name="debug_logging" invisible="1"/>
|
||||
<label for="delivery_type"/>
|
||||
|
||||
Reference in New Issue
Block a user