conv_bal
watcha.h@almacom.co.th 2015-04-22 20:26:22 +07:00
parent ab3e8f2d96
commit 5baeb8152c
4 changed files with 8 additions and 19 deletions

View File

@ -1,18 +1 @@
dom=[['patient_id.field_bool','=',True]] => not working attr multi_company=True not working
pattern id card: 3 3013 00180 19 0
-edit hdcase
1. description not show because permission
--- receipt --
date should be the same -> ok
force to print table for 1 page ->ok
!!! bug:
print multi page
---- visit ---
- check duplicate visit
- run script to take department to patient
--- visit board
- hide branch and department according to user profile

View File

@ -797,6 +797,9 @@ class HDCase(Model):
"location_from_id": wh_loc_id, "location_from_id": wh_loc_id,
"location_to_id": cust_loc_id, "location_to_id": cust_loc_id,
} }
#XXX whare house in profile product
if prod.location_id:
line_vals['location_from_id']=prod.location_id.id
pick_vals["lines"].append(("create",line_vals)) pick_vals["lines"].append(("create",line_vals))
if not pick_vals["lines"]: if not pick_vals["lines"]:
return { return {

View File

@ -425,6 +425,9 @@ class Shop(Model):
"location_from_id": wh_loc_id, "location_from_id": wh_loc_id,
"location_to_id": cust_loc_id, "location_to_id": cust_loc_id,
} }
#XXX whare house in profile product
if prod.location_id:
line_vals['location_from_id']=prod.location_id.id
pick_vals["lines"].append(("create",line_vals)) pick_vals["lines"].append(("create",line_vals))
if not pick_vals["lines"]: if not pick_vals["lines"]:
return { return {

View File

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