conv_bal
Phongsan.b 2014-08-28 18:21:34 +07:00
parent d28d602018
commit 3373af9620
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<action>
<field name="name">clinic_hd_case_line_detail</field>
<field name="string">Hd Case list Detial </field>
<field name="view_cls">list</field>
<field name="model">clinic.hd.case.line.detail</field>
<field name="menu">clinic_menu</field>
</action>

View File

@ -0,0 +1,19 @@
from netforce.model import Model, fields, get_model
from netforce.utils import get_data_path
import time
from netforce.access import get_active_user
from netforce.access import get_active_company
class HdcaselineDetail(Model):
_name="clinic.hd.case.line.detail"
_fields={
"hd_case_id": fields.Many2One("clinic.hd.case","HdCase",required=True,on_delete="cascade"),
"product_id": fields.Many2One("product","Product",search=True),
"detail": fields.Char("Description",search=True),
"qty":fields.Integer("QTY"),
"uom_id": fields.Many2One("uom","UOM",required=True,search=True),
"price":fields.Float("Price"),
"total":fields.Float("Total"),
}
HdcaselineDetail.register()