filter product

conv_bal
watcha.h 2015-01-26 16:15:02 +07:00
parent 737221b971
commit dacfa2bded
5 changed files with 13 additions and 4 deletions

View File

@ -49,7 +49,7 @@
<item string="Sickbed" action="clinic_sickbed"/>
<item string="Valcular Access" action="clinic_vascular_access"/>
</item>
<item string="Reports" perm="clinic_report">
<item string="Reporting" perm="clinic_report">
<item string="Visit Summary" action="clinic_report_visit"/>
<item string="HD Case Summary" action="clinic_report_hd_case_summary"/>
<item string="Medical Summary" action="clinic_report_medical_summary"/>

View File

@ -0,0 +1,5 @@
<inherit model="product" inherit="product_list">
<field name="brand_id" position="replace">
<field name="categ_id"/>
</field>
</inherit>

View File

@ -0,0 +1,5 @@
<inherit model="product" inherit="product_search">
<field name="categs" position="before">
<field name="categ_id" child_of="1"/>
</field>
</inherit>

View File

@ -61,10 +61,8 @@ class Cycle(Model):
super().write(ids,vals,**kw)
if 'color' in vals.keys():
color=vals['color']
#old_color=obj.color
dom=[]
dom.append(['cycle_id','=',obj.id])
#dom.append(['cycle_color','=',old_color])
for vs in get_model('clinic.visit').search_browse(dom):
vs.write({
'cycle_color': color,

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python
from netforce.setup import setup
setup(