labor cost item

conv_bal
watcha.h 2014-12-09 07:11:39 +07:00
parent 2aa67e0271
commit e761b955bb
6 changed files with 28 additions and 7 deletions

View File

@ -1,5 +1,5 @@
<action> <action>
<field name="string">Labor Costs</field> <field name="string">Labor Cost</field>
<field name="view_cls">multi_view</field> <field name="view_cls">multi_view</field>
<field name="model">clinic.labor.cost</field> <field name="model">clinic.labor.cost</field>
<field name="menu">account_menu</field> <field name="menu">account_menu</field>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -2,6 +2,7 @@
<item string="Settings" position="before"> <item string="Settings" position="before">
<item string="Ratchawat"> <item string="Ratchawat">
<item string="Labor Cost" action="clinic_labor_cost"/> <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"/> <item string="Import Payment" action="import_clinic_payment"/>
<divider/> <divider/>
<header string="REPORTS"/> <header string="REPORTS"/>

View File

@ -3,19 +3,19 @@ from netforce.access import get_active_company
class LaborCostLine(Model): class LaborCostLine(Model):
_name="clinic.labor.cost.line" _name="clinic.labor.cost.line"
_string="Labor Cost Line" _string="Labor Cost Item"
_name_field="labor_cost_id" _name_field="labor_cost_id"
_fields={ _fields={
"labor_cost_id": fields.Many2One("clinic.labor.cost","Cycle Item",required=True), "labor_cost_id": fields.Many2One("clinic.labor.cost","Cycle Item",required=True),
'staff_id': fields.Many2One("clinic.staff", "Staff"), 'staff_id': fields.Many2One("clinic.staff", "Staff",search=True),
'level_id': fields.Many2One("clinic.staff.level", "Level"), 'level_id': fields.Many2One("clinic.staff.level", "Level",search=True),
'cycle_id': fields.Many2One("clinic.cycle", "Cycle"), '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"), 'qty': fields.Integer("Qty"),
'rate': fields.Float("Rate",scale=2), 'rate': fields.Float("Rate",scale=2),
'amount': fields.Float("Amount",scale=2), 'amount': fields.Float("Amount",scale=2),
'date': fields.Date("Date"), 'date': fields.Date("Date",search=True),
"type": fields.Selection([('staff','Staff'),("doctor","Doctor"),('nurse','Nurse')],"Type",required=True),
'company_id': fields.Many2One('company','Company'), 'company_id': fields.Many2One('company','Company'),
} }