add seqeunce
parent
117685679e
commit
16676dcf4b
|
@ -21,6 +21,7 @@
|
||||||
<field name="auto_gen" invisible="1" span="3"/>
|
<field name="auto_gen" invisible="1" span="3"/>
|
||||||
<field name="products" nolabel="1">
|
<field name="products" nolabel="1">
|
||||||
<list>
|
<list>
|
||||||
|
<field name="sequence"/>
|
||||||
<field name="patient_type_id" onchange="onchange_ptype"/>
|
<field name="patient_type_id" onchange="onchange_ptype"/>
|
||||||
<field name="product_categ_id"/>
|
<field name="product_categ_id"/>
|
||||||
<field name="product_id" domain='[["categ_id.id","=",product_categ_id],["patient_types.id","=",patient_type_id]]' onchange="onchange_product"/>
|
<field name="product_id" domain='[["categ_id.id","=",product_categ_id],["patient_types.id","=",patient_type_id]]' onchange="onchange_product"/>
|
||||||
|
|
|
@ -19,6 +19,7 @@ class Hdcaseline(Model):
|
||||||
"ar_debit_id": fields.Many2One("account.account","Account Debit"),
|
"ar_debit_id": fields.Many2One("account.account","Account Debit"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def _get_categ(self,context={}):
|
def _get_categ(self,context={}):
|
||||||
categ_ids=get_model("product.categ").search([['code','=','EPO']])
|
categ_ids=get_model("product.categ").search([['code','=','EPO']])
|
||||||
if categ_ids:
|
if categ_ids:
|
||||||
|
|
|
@ -22,6 +22,7 @@ class SettingProduct(Model):
|
||||||
"ar_credit_id": fields.Many2One("account.account","AR Credit",multi_company=True),
|
"ar_credit_id": fields.Many2One("account.account","AR Credit",multi_company=True),
|
||||||
"ar_debit_id": fields.Many2One("account.account","AR Debit",multi_company=True),
|
"ar_debit_id": fields.Many2One("account.account","AR Debit",multi_company=True),
|
||||||
'company_id': fields.Many2One("company","Company"),
|
'company_id': fields.Many2One("company","Company"),
|
||||||
|
'sequence': fields.Char("Sequence"),
|
||||||
}
|
}
|
||||||
|
|
||||||
_defaults={
|
_defaults={
|
||||||
|
@ -30,7 +31,7 @@ class SettingProduct(Model):
|
||||||
'reimbursable': 'no',
|
'reimbursable': 'no',
|
||||||
}
|
}
|
||||||
|
|
||||||
_order="patient_type_id"
|
_order="patient_type_id,sequence"
|
||||||
|
|
||||||
|
|
||||||
SettingProduct.register()
|
SettingProduct.register()
|
||||||
|
|
Loading…
Reference in New Issue