conv_bal
watcha.h@almacom.co.th 2015-05-11 10:54:36 +07:00
parent b778aa3aad
commit 8a0c430fee
5 changed files with 6 additions and 4 deletions

View File

@ -302,7 +302,7 @@ class HDCase(Model):
return None
user_id=get_active_user()
set_active_user(1)
res=self.search([["number","=",num]])
res=get_model('account.invoice').search([["number","=",num]])
set_active_user(user_id)
if not res:
return num

View File

@ -56,6 +56,7 @@ class Sequence(Model):
}
def find_sequence(self,type=None,name=None,context={}):
print('name ', name, type, context)
if type and name:
dom=[["type","=",type],["name","=",name]]
elif type:

View File

@ -127,7 +127,7 @@ class Shop(Model):
return None
user_id=get_active_user()
set_active_user(1)
res=self.search([["number","=",num]])
res=get_model("account.invoice").search([["number","=",num]])
set_active_user(user_id)
if not res:
return num
@ -141,7 +141,7 @@ class Shop(Model):
return None
user_id=get_active_user()
set_active_user(1)
res=self.search([["number","=",num]])
res=get_model("account.payment").search([["number","=",num]])
set_active_user(user_id)
if not res:
return num

View File

@ -37,6 +37,7 @@
<th></th>
<th></th>
<th></th>
<th></th>
</tfoot>
</table>

View File

@ -10,4 +10,4 @@
แก้ไขยาก หากมาเจอข้อผิดพลาดบางครั้ง
> report K. boy
- number of treatment is not correct
total qty of report_labor_cost_staff is not the same report_labor_cost