|
|
@ -12,12 +12,12 @@ |
|
|
|
class="btn-primary"/> |
|
|
|
<button name="action_checkin" string="Check-In" |
|
|
|
class="btn-primary" |
|
|
|
invisible="is_checkin == True or (state in ['check_in','check_out','done','cancel'])" |
|
|
|
invisible="is_checkin == True or state in ('check_in','check_out','done','cancel')" |
|
|
|
type="object"/> |
|
|
|
<button name="action_maintenance_request" |
|
|
|
string="Maintenance Request" type="object" |
|
|
|
class="btn-primary" |
|
|
|
invisible=" maintenance_request_sent == True or ( state not in ['check_in', 'reserved'])"/> |
|
|
|
invisible=" maintenance_request_sent == True or state not in ('check_in', 'reserved')"/> |
|
|
|
<button name="action_checkout" string="Check-Out" |
|
|
|
class="btn-primary" invisible="state != 'check_in'" |
|
|
|
type="object"/> |
|
|
@ -26,10 +26,9 @@ |
|
|
|
invisible="state != 'check_out'" type="object"/> |
|
|
|
<button name="action_invoice" string="Create Invoice" |
|
|
|
type="object" class="btn-primary" |
|
|
|
invisible="state not in ['draft', 'check_out'] or invoice_button_visible == True"/> |
|
|
|
invisible="state not in ('draft', 'done') or invoice_button_visible == True"/> |
|
|
|
<button name="action_cancel" string="Cancel" |
|
|
|
invisible="state not in ['draft','reserved']" |
|
|
|
type="object" class="btn-secondary"/> |
|
|
|
invisible="state not in ('draft','reserved','check_out')" type="object" class="btn-secondary"/> |
|
|
|
<field name="state" select="2" widget="statusbar" |
|
|
|
statusbar_visible="draft,check_in,check_out,done"/> |
|
|
|
<field name="invoice_status" select="2" widget="statusbar" |
|
|
|