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">
|
||||
<head>
|
||||
<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">
|
||||
<item string="To Draft" method="to_draft" states="paid"/>
|
||||
</button>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<field name="active"/>
|
||||
</group>
|
||||
</tab>
|
||||
<tab string="Work Location">
|
||||
<tab string="Working Location">
|
||||
<field name="branch_id" required="1"/>
|
||||
<field name="department_id" domain='[["branch_id","=",branch_id]]' required="1"/>
|
||||
<field name="departments"/>
|
||||
|
@ -43,16 +43,15 @@
|
|||
<tab string="Professional Information">
|
||||
<field name="prof_license" 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"]]]}'/>
|
||||
</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="wage"/>
|
||||
<field name="max_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 string="Note">
|
||||
<field name="note" nolabel="1"/>
|
||||
|
|
|
@ -1028,7 +1028,6 @@ class HDCase(Model):
|
|||
"pages": pages,
|
||||
"logo": get_file_path(settings.logo),
|
||||
}
|
||||
return
|
||||
|
||||
def new_dialyzer(self,ids,context={}):
|
||||
obj=self.browse(ids)[0]
|
||||
|
@ -1379,9 +1378,6 @@ class HDCase(Model):
|
|||
payment_id=payment.id
|
||||
if not payment_id:
|
||||
raise Exception("Receipt not found!")
|
||||
#obj.write({
|
||||
#'payment_id': obj.id,
|
||||
#})
|
||||
return {
|
||||
'next': {
|
||||
'name': 'report_clinic_payment_form',
|
||||
|
|
Loading…
Reference in New Issue