diff --git a/netforce_clinic/layouts/clinic_setting.xml b/netforce_clinic/layouts/clinic_setting.xml index 8fc130c..cdd4365 100644 --- a/netforce_clinic/layouts/clinic_setting.xml +++ b/netforce_clinic/layouts/clinic_setting.xml @@ -21,6 +21,7 @@ + diff --git a/netforce_clinic/models/hd_case_line.py b/netforce_clinic/models/hd_case_line.py index 6456b31..e4fe6e1 100644 --- a/netforce_clinic/models/hd_case_line.py +++ b/netforce_clinic/models/hd_case_line.py @@ -19,6 +19,7 @@ class Hdcaseline(Model): "ar_debit_id": fields.Many2One("account.account","Account Debit"), } + def _get_categ(self,context={}): categ_ids=get_model("product.categ").search([['code','=','EPO']]) if categ_ids: diff --git a/netforce_clinic/models/setting_product.py b/netforce_clinic/models/setting_product.py index 407fb14..3d147f2 100644 --- a/netforce_clinic/models/setting_product.py +++ b/netforce_clinic/models/setting_product.py @@ -22,6 +22,7 @@ class SettingProduct(Model): "ar_credit_id": fields.Many2One("account.account","AR Credit",multi_company=True), "ar_debit_id": fields.Many2One("account.account","AR Debit",multi_company=True), 'company_id': fields.Many2One("company","Company"), + 'sequence': fields.Char("Sequence"), } _defaults={ @@ -30,7 +31,7 @@ class SettingProduct(Model): 'reimbursable': 'no', } - _order="patient_type_id" + _order="patient_type_id,sequence" SettingProduct.register()