Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4307 Visualizações

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
Avatar
Cancelar
Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
abr. 17
3012
1
ago. 24
2237
0
jan. 23
1877
3
nov. 15
5570
1
dez. 17
6989