This commit is contained in:
Florent de Labarre
2018-01-14 19:56:10 +01:00
committed by David Montull
parent 7b0c679f33
commit 28ebcb631e
3 changed files with 13 additions and 13 deletions

View File

@@ -12,12 +12,12 @@
<field name="model">printing.printer</field>
<field name="arch" type="xml">
<form string="Printers">
<header>
<button name="enable" type="object" string="Enable" attrs="{'invisible': [('status', 'in', ('available', 'printing'))]}"/>
<button name="disable" type="object" string="Disable" attrs="{'invisible': [('status', '=', 'unavailable')]}"/>
<button name="action_cancel_all_jobs" type="object" string="Cancel all running jobs" confirm="Are you sure to want to cancel all jobs of this printer?"/>
</header>
<sheet>
<header>
<button name="enable" type="object" string="Enable" attrs="{'invisible': [('status', 'in', ('available', 'printing'))]}"/>
<button name="disable" type="object" string="Disable" attrs="{'invisible': [('status', '=', 'unavailable')]}"/>
<button name="action_cancel_all_jobs" type="object" string="Cancel all running jobs" confirm="Are you sure to want to cancel all jobs of this printer?"/>
</header>
<div class="oe_title">
<h1>
<field name="name"/>