default qty on product profile
parent
01eaa85335
commit
002e4fe920
|
@ -2,6 +2,7 @@
|
|||
<tab string="Other" position="after">
|
||||
<tab string="Ratchawat">
|
||||
<group form_layout="stacked">
|
||||
<field name="default_qty" span="2"/>
|
||||
<separator string="Product View"/>
|
||||
<field name="patient_types" nolabel="1" span="12">
|
||||
<list>
|
||||
|
|
|
@ -458,7 +458,7 @@ class HDCase(Model):
|
|||
line['uom_id']=prod.uom_id.id
|
||||
line['description']=prod.name
|
||||
line['product_categ_id']=prod.categ_id.id
|
||||
qty=1
|
||||
qty=prod.default_qty or 1
|
||||
price=prod.sale_price or 0.0
|
||||
amt=qty*price
|
||||
line['qty']=qty
|
||||
|
|
|
@ -8,6 +8,7 @@ class Product(Model):
|
|||
'departments': fields.One2Many('clinic.department.product','product_id','Departments'),
|
||||
'report_visible': fields.Boolean("Report Visible"),
|
||||
'account_products': fields.One2Many('clinic.setting.account.product','product_id','Account Products'),
|
||||
'default_qty': fields.Float("Default Qty"),
|
||||
}
|
||||
|
||||
#TODO
|
||||
|
|
Loading…
Reference in New Issue