add file
parent
d28d602018
commit
3373af9620
|
@ -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>
|
|
@ -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()
|
||||
|
Loading…
Reference in New Issue