conv_bal
watcha.h 2014-10-01 14:47:50 +07:00
parent 3801ae16ea
commit c19c6f2d30
3 changed files with 3 additions and 2 deletions

View File

@ -14,6 +14,7 @@
<field name="birthday"/> <field name="birthday"/>
<field name="telephone"/> <field name="telephone"/>
<field name="mobile"/> <field name="mobile"/>
<field name="department"/>
</tab> </tab>
</tabs> </tabs>
<related> <related>

View File

@ -193,9 +193,9 @@ class Hdcase(Model):
for obj in self.browse(ids): for obj in self.browse(ids):
total=0 total=0
amt=0 amt=0
fee=obj.fee fee=obj.fee or 0
for line in obj.lines_detail: for line in obj.lines_detail:
total+=line.total total+=line.total or 0
amt=total+fee amt=total+fee
vals[obj.id]={ vals[obj.id]={
"total": total, "total": total,