filter product
parent
737221b971
commit
dacfa2bded
|
@ -49,7 +49,7 @@
|
||||||
<item string="Sickbed" action="clinic_sickbed"/>
|
<item string="Sickbed" action="clinic_sickbed"/>
|
||||||
<item string="Valcular Access" action="clinic_vascular_access"/>
|
<item string="Valcular Access" action="clinic_vascular_access"/>
|
||||||
</item>
|
</item>
|
||||||
<item string="Reports" perm="clinic_report">
|
<item string="Reporting" perm="clinic_report">
|
||||||
<item string="Visit Summary" action="clinic_report_visit"/>
|
<item string="Visit Summary" action="clinic_report_visit"/>
|
||||||
<item string="HD Case Summary" action="clinic_report_hd_case_summary"/>
|
<item string="HD Case Summary" action="clinic_report_hd_case_summary"/>
|
||||||
<item string="Medical Summary" action="clinic_report_medical_summary"/>
|
<item string="Medical Summary" action="clinic_report_medical_summary"/>
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
<inherit model="product" inherit="product_list">
|
||||||
|
<field name="brand_id" position="replace">
|
||||||
|
<field name="categ_id"/>
|
||||||
|
</field>
|
||||||
|
</inherit>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<inherit model="product" inherit="product_search">
|
||||||
|
<field name="categs" position="before">
|
||||||
|
<field name="categ_id" child_of="1"/>
|
||||||
|
</field>
|
||||||
|
</inherit>
|
|
@ -61,10 +61,8 @@ class Cycle(Model):
|
||||||
super().write(ids,vals,**kw)
|
super().write(ids,vals,**kw)
|
||||||
if 'color' in vals.keys():
|
if 'color' in vals.keys():
|
||||||
color=vals['color']
|
color=vals['color']
|
||||||
#old_color=obj.color
|
|
||||||
dom=[]
|
dom=[]
|
||||||
dom.append(['cycle_id','=',obj.id])
|
dom.append(['cycle_id','=',obj.id])
|
||||||
#dom.append(['cycle_color','=',old_color])
|
|
||||||
for vs in get_model('clinic.visit').search_browse(dom):
|
for vs in get_model('clinic.visit').search_browse(dom):
|
||||||
vs.write({
|
vs.write({
|
||||||
'cycle_color': color,
|
'cycle_color': color,
|
||||||
|
|
Loading…
Reference in New Issue