labor cost item
parent
2aa67e0271
commit
e761b955bb
|
@ -1,5 +1,5 @@
|
|||
<action>
|
||||
<field name="string">Labor Costs</field>
|
||||
<field name="string">Labor Cost</field>
|
||||
<field name="view_cls">multi_view</field>
|
||||
<field name="model">clinic.labor.cost</field>
|
||||
<field name="menu">account_menu</field>
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
<action>
|
||||
<field name="string">Labor Cost Items</field>
|
||||
<field name="view_cls">multi_view</field>
|
||||
<field name="model">clinic.labor.cost.line</field>
|
||||
<field name="menu">account_menu</field>
|
||||
</action>
|
|
@ -0,0 +1,7 @@
|
|||
<form model="clinic.labor.cost.line">
|
||||
<field name="date"/>
|
||||
<field name="cycle_id"/>
|
||||
<field name="staff_id"/>
|
||||
<field name="type"/>
|
||||
<field name="amount"/>
|
||||
</form>
|
|
@ -0,0 +1,7 @@
|
|||
<list model="clinic.labor.cost.line">
|
||||
<field name="date"/>
|
||||
<field name="cycle_id"/>
|
||||
<field name="staff_id"/>
|
||||
<field name="type"/>
|
||||
<field name="amount"/>
|
||||
</list>
|
|
@ -2,6 +2,7 @@
|
|||
<item string="Settings" position="before">
|
||||
<item string="Ratchawat">
|
||||
<item string="Labor Cost" action="clinic_labor_cost"/>
|
||||
<item string="Labor Cost Items" action="clinic_labor_cost_item"/>
|
||||
<item string="Import Payment" action="import_clinic_payment"/>
|
||||
<divider/>
|
||||
<header string="REPORTS"/>
|
||||
|
|
|
@ -3,19 +3,19 @@ from netforce.access import get_active_company
|
|||
|
||||
class LaborCostLine(Model):
|
||||
_name="clinic.labor.cost.line"
|
||||
_string="Labor Cost Line"
|
||||
_string="Labor Cost Item"
|
||||
_name_field="labor_cost_id"
|
||||
|
||||
_fields={
|
||||
"labor_cost_id": fields.Many2One("clinic.labor.cost","Cycle Item",required=True),
|
||||
'staff_id': fields.Many2One("clinic.staff", "Staff"),
|
||||
'level_id': fields.Many2One("clinic.staff.level", "Level"),
|
||||
'cycle_id': fields.Many2One("clinic.cycle", "Cycle"),
|
||||
'staff_id': fields.Many2One("clinic.staff", "Staff",search=True),
|
||||
'level_id': fields.Many2One("clinic.staff.level", "Level",search=True),
|
||||
'cycle_id': fields.Many2One("clinic.cycle", "Cycle",search=True),
|
||||
"type": fields.Selection([('staff','Staff'),("doctor","Doctor"),('nurse','Nurse')],"Type",search=True),
|
||||
'qty': fields.Integer("Qty"),
|
||||
'rate': fields.Float("Rate",scale=2),
|
||||
'amount': fields.Float("Amount",scale=2),
|
||||
'date': fields.Date("Date"),
|
||||
"type": fields.Selection([('staff','Staff'),("doctor","Doctor"),('nurse','Nurse')],"Type",required=True),
|
||||
'date': fields.Date("Date",search=True),
|
||||
'company_id': fields.Many2One('company','Company'),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue