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

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="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"/>

View File

@ -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'),
}