跳至内容
菜单
此问题已终结

Hey i have customized stock.picking to force back date entry in stock move and stock move line while product receipt. But when i successfully post an entry in back date it do get posted but shows no effect on stock.valuation.layer. Is there something i am missing in the workflow? Kindly help

This is how i am overriding action_done()

def action_done(self):
for pick in self:
for ops in pick.move_line_ids.filtered(lambda x: not x.move_id):
new_move = self.env['stock.move'].create({
'date': pick.force_date,
})
self.write({'date_done': self.force_date})
res = super(Picking,self).action_done()
return res
Thanks in advance
形象
丢弃
最佳答案

There are no field date in stock.valuation.layer model, stock.valuation.layer is working with create_date

形象
丢弃
相关帖文 回复 查看 活动
1
4月 17
3140
1
8月 24
2337
0
1月 23
1972
3
11月 15
5656
1
12月 17
7139