wrong picking sequence

conv_bal
watcha.h 2015-03-17 21:37:18 +07:00
parent 82cc4eb6ab
commit f1549b2536
6 changed files with 24 additions and 8 deletions

View File

@ -17,10 +17,10 @@
<field name="branch_id" span="2"/>
<field name="department_id" domain='[["branch_id","=",branch_id]]' span="2"/>
<field name="pay_type" span="2"/>
<field name="pay_date" span="2" attrs='{"invisible":[["pay_type","=","credit"]],"readonly":[["state","=","blabla"]]}'/>
<field name="cheque_no" span="2" attrs='{"invisible":[["pay_type","=","credit"]],"readonly":[["state","=","blabla"]]}'/>
<field name="bank_name" span="2" attrs='{"invisible":[["pay_type","=","credit"]],"readonly":[["state","=","blabla"]]}'/>
<field name="bank_branch" span="2" attrs='{"invisible":[["pay_type","=","credit"]],"readonly":[["state","=","blabla"]]}'/>
<field name="pay_date" span="2"/>
<field name="cheque_no" span="2"/>
<field name="bank_name" span="2"/>
<field name="bank_branch" span="2"/>
<field name="hd_case_call" invisible="1"/>
<field name="shop_categs" invisible="1"/>
<field name="company_id" invisible="1"/>

View File

@ -121,5 +121,4 @@ from . import select_company
from . import name_title
from . import compute_labor_cost
from . import login
from . import address
from . import sequence

View File

@ -166,7 +166,11 @@ class Dialyzer(Model):
}
pick_vals["lines"].append(("create",line_vals))
picking_obj=get_model("stock.picking")
pick_id=picking_obj.create(pick_vals,context={"pick_type": "out"})
context={
'pick_type': 'out',
'journal_id': pick_vals['journal_id'],
}
pick_id=picking_obj.create(pick_vals,context=context)
pick=picking_obj.browse(pick_id)
pick.set_done([pick_id])
number=obj.number.replace("/","")

View File

@ -690,7 +690,11 @@ class HDCase(Model):
"flash": "Nothing left to deliver",
}
picking_obj=get_model("stock.picking")
pick_id=picking_obj.create(pick_vals,context={"pick_type": "out"})
context={
'pick_type': 'out',
'journal_id': pick_vals['journal_id'],
}
pick_id=picking_obj.create(pick_vals,context=context)
pick=picking_obj.browse(pick_id)
pick.set_done([pick_id])

View File

@ -386,7 +386,11 @@ class Shop(Model):
"flash": "Nothing left to deliver",
}
picking_obj=get_model("stock.picking")
pick_id=picking_obj.create(pick_vals,context={"pick_type": "out"})
context={
'pick_type': 'out',
'journal_id': pick_vals['journal_id'],
}
pick_id=picking_obj.create(pick_vals,context=context)
pick=picking_obj.browse(pick_id)
pick.set_done([pick_id])

View File

@ -4,3 +4,8 @@
- merge data
- patient
- doctor
====
ต้องมี เมนู
1. ย้ายผู้ป่วย
2. ปรับ level