|
@@ -41,7 +41,7 @@
|
|
|
string="Activar"
|
|
|
type="object"
|
|
|
class="oe_highlight"
|
|
|
- modifiers="{'invisible': [('state', 'not in', ['draft', 'suspended'])]}" />
|
|
|
+ modifiers="{'invisible': ['|', ('id', '=', False), ('state', 'not in', ['draft', 'suspended'])]}" />
|
|
|
<button
|
|
|
name="action_suspend"
|
|
|
states="activated"
|
|
@@ -60,7 +60,7 @@
|
|
|
name="state"
|
|
|
widget="statusbar"
|
|
|
statusbar="draft,activated,disapproved,suspended,destroyed"
|
|
|
- statusbar_colors='{"activated":"blue", "destroyed": "red"}' />
|
|
|
+ statusbar_colors="{'activated':'blue','destroyed':'red'}" />
|
|
|
</header>
|
|
|
<sheet>
|
|
|
<div class="oe_button_box oe_right">
|