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="telephone"/>
<field name="mobile"/>
<field name="department"/>
</tab>
</tabs>
<related>

View File

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