wrong picking sequence
parent
82cc4eb6ab
commit
f1549b2536
|
@ -17,10 +17,10 @@
|
||||||
<field name="branch_id" span="2"/>
|
<field name="branch_id" span="2"/>
|
||||||
<field name="department_id" domain='[["branch_id","=",branch_id]]' span="2"/>
|
<field name="department_id" domain='[["branch_id","=",branch_id]]' span="2"/>
|
||||||
<field name="pay_type" span="2"/>
|
<field name="pay_type" span="2"/>
|
||||||
<field name="pay_date" span="2" attrs='{"invisible":[["pay_type","=","credit"]],"readonly":[["state","=","blabla"]]}'/>
|
<field name="pay_date" span="2"/>
|
||||||
<field name="cheque_no" span="2" attrs='{"invisible":[["pay_type","=","credit"]],"readonly":[["state","=","blabla"]]}'/>
|
<field name="cheque_no" span="2"/>
|
||||||
<field name="bank_name" span="2" attrs='{"invisible":[["pay_type","=","credit"]],"readonly":[["state","=","blabla"]]}'/>
|
<field name="bank_name" span="2"/>
|
||||||
<field name="bank_branch" span="2" attrs='{"invisible":[["pay_type","=","credit"]],"readonly":[["state","=","blabla"]]}'/>
|
<field name="bank_branch" span="2"/>
|
||||||
<field name="hd_case_call" invisible="1"/>
|
<field name="hd_case_call" invisible="1"/>
|
||||||
<field name="shop_categs" invisible="1"/>
|
<field name="shop_categs" invisible="1"/>
|
||||||
<field name="company_id" invisible="1"/>
|
<field name="company_id" invisible="1"/>
|
||||||
|
|
|
@ -121,5 +121,4 @@ from . import select_company
|
||||||
from . import name_title
|
from . import name_title
|
||||||
from . import compute_labor_cost
|
from . import compute_labor_cost
|
||||||
from . import login
|
from . import login
|
||||||
from . import address
|
|
||||||
from . import sequence
|
from . import sequence
|
||||||
|
|
|
@ -166,7 +166,11 @@ class Dialyzer(Model):
|
||||||
}
|
}
|
||||||
pick_vals["lines"].append(("create",line_vals))
|
pick_vals["lines"].append(("create",line_vals))
|
||||||
picking_obj=get_model("stock.picking")
|
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=picking_obj.browse(pick_id)
|
||||||
pick.set_done([pick_id])
|
pick.set_done([pick_id])
|
||||||
number=obj.number.replace("/","")
|
number=obj.number.replace("/","")
|
||||||
|
|
|
@ -690,7 +690,11 @@ class HDCase(Model):
|
||||||
"flash": "Nothing left to deliver",
|
"flash": "Nothing left to deliver",
|
||||||
}
|
}
|
||||||
picking_obj=get_model("stock.picking")
|
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=picking_obj.browse(pick_id)
|
||||||
pick.set_done([pick_id])
|
pick.set_done([pick_id])
|
||||||
|
|
||||||
|
|
|
@ -386,7 +386,11 @@ class Shop(Model):
|
||||||
"flash": "Nothing left to deliver",
|
"flash": "Nothing left to deliver",
|
||||||
}
|
}
|
||||||
picking_obj=get_model("stock.picking")
|
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=picking_obj.browse(pick_id)
|
||||||
pick.set_done([pick_id])
|
pick.set_done([pick_id])
|
||||||
|
|
||||||
|
|
|
@ -4,3 +4,8 @@
|
||||||
- merge data
|
- merge data
|
||||||
- patient
|
- patient
|
||||||
- doctor
|
- doctor
|
||||||
|
|
||||||
|
====
|
||||||
|
ต้องมี เมนู
|
||||||
|
1. ย้ายผู้ป่วย
|
||||||
|
2. ปรับ level
|
||||||
|
|
Loading…
Reference in New Issue