hide account tab on staff page
parent
c253216849
commit
2be7e0c34f
|
@ -1,7 +1,7 @@
|
||||||
<form model="clinic.shop" attrs='{"readonly":[["state","in",["cancelled","paid","waiting_payment"]]]}' show_company="1">
|
<form model="clinic.shop" attrs='{"readonly":[["state","in",["cancelled","paid","waiting_payment"]]]}' show_company="1">
|
||||||
<head>
|
<head>
|
||||||
<field name="state"/>
|
<field name="state"/>
|
||||||
<button string="Print" icon="print" method="print_bill"/>
|
<button string="Print" icon="print" action="clinic_cust_print" action_options="convert=pdf"/>
|
||||||
<button string="Options" dropdown="1">
|
<button string="Options" dropdown="1">
|
||||||
<item string="To Draft" method="to_draft" states="paid"/>
|
<item string="To Draft" method="to_draft" states="paid"/>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<field name="active"/>
|
<field name="active"/>
|
||||||
</group>
|
</group>
|
||||||
</tab>
|
</tab>
|
||||||
<tab string="Work Location">
|
<tab string="Working Location">
|
||||||
<field name="branch_id" required="1"/>
|
<field name="branch_id" required="1"/>
|
||||||
<field name="department_id" domain='[["branch_id","=",branch_id]]' required="1"/>
|
<field name="department_id" domain='[["branch_id","=",branch_id]]' required="1"/>
|
||||||
<field name="departments"/>
|
<field name="departments"/>
|
||||||
|
@ -43,16 +43,15 @@
|
||||||
<tab string="Professional Information">
|
<tab string="Professional Information">
|
||||||
<field name="prof_license" attrs='{"invisible":[["type","in",["staff"]]]}'/>
|
<field name="prof_license" attrs='{"invisible":[["type","in",["staff"]]]}'/>
|
||||||
<field name="prof_license_date" attrs='{"invisible":[["type","in",["staff"]]]}'/>
|
<field name="prof_license_date" attrs='{"invisible":[["type","in",["staff"]]]}'/>
|
||||||
<field name="level_id" domain="[['type','=',type]]"/>
|
|
||||||
<field name="prof_license_expiry" attrs='{"invisible":[["type","in",["staff"]]]}'/>
|
<field name="prof_license_expiry" attrs='{"invisible":[["type","in",["staff"]]]}'/>
|
||||||
|
</tab>
|
||||||
|
<tab string="Accounting" perm="staff_tab_account">
|
||||||
|
<field name="partner_id" domain='[["is_staff","=","true"]]'/>
|
||||||
|
<field name="level_id" domain="[['type','=',type]]"/>
|
||||||
<field name="cycle_id"/>
|
<field name="cycle_id"/>
|
||||||
<field name="wage"/>
|
<field name="wage"/>
|
||||||
<field name="max_cycle"/>
|
<field name="max_cycle"/>
|
||||||
<field name="ot_per_cycle"/>
|
<field name="ot_per_cycle"/>
|
||||||
<!--<field name="check_max_cycle"/>-->
|
|
||||||
</tab>
|
|
||||||
<tab string="Accounting">
|
|
||||||
<field name="partner_id" domain='[["is_staff","=","true"]]'/>
|
|
||||||
</tab>
|
</tab>
|
||||||
<tab string="Note">
|
<tab string="Note">
|
||||||
<field name="note" nolabel="1"/>
|
<field name="note" nolabel="1"/>
|
||||||
|
|
|
@ -1028,7 +1028,6 @@ class HDCase(Model):
|
||||||
"pages": pages,
|
"pages": pages,
|
||||||
"logo": get_file_path(settings.logo),
|
"logo": get_file_path(settings.logo),
|
||||||
}
|
}
|
||||||
return
|
|
||||||
|
|
||||||
def new_dialyzer(self,ids,context={}):
|
def new_dialyzer(self,ids,context={}):
|
||||||
obj=self.browse(ids)[0]
|
obj=self.browse(ids)[0]
|
||||||
|
@ -1379,9 +1378,6 @@ class HDCase(Model):
|
||||||
payment_id=payment.id
|
payment_id=payment.id
|
||||||
if not payment_id:
|
if not payment_id:
|
||||||
raise Exception("Receipt not found!")
|
raise Exception("Receipt not found!")
|
||||||
#obj.write({
|
|
||||||
#'payment_id': obj.id,
|
|
||||||
#})
|
|
||||||
return {
|
return {
|
||||||
'next': {
|
'next': {
|
||||||
'name': 'report_clinic_payment_form',
|
'name': 'report_clinic_payment_form',
|
||||||
|
|
Loading…
Reference in New Issue