diff --git a/netforce_clinic/layouts/clinic_prod_form.xml b/netforce_clinic/layouts/clinic_prod_form.xml index 9cc9294..98b238c 100644 --- a/netforce_clinic/layouts/clinic_prod_form.xml +++ b/netforce_clinic/layouts/clinic_prod_form.xml @@ -2,6 +2,7 @@ + diff --git a/netforce_clinic/models/hd_case.py b/netforce_clinic/models/hd_case.py index c63da22..6af5caf 100644 --- a/netforce_clinic/models/hd_case.py +++ b/netforce_clinic/models/hd_case.py @@ -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 diff --git a/netforce_clinic/models/product.py b/netforce_clinic/models/product.py index 36b3fd3..246ccec 100644 --- a/netforce_clinic/models/product.py +++ b/netforce_clinic/models/product.py @@ -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