Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3486 Представления

I asked this before, but now I need this deadly.

I want the same order or products in the sales ordere and delivery note. Right now I cannot determine what order is used in the delivery note. Sometimes it is the same order sometimes not.

I break it down that stock.move is ordered by date and id and I changed this with a customization module:

from osv import osv

class stock_move(osv.osv):
    _name = 'stock.move'
    _inherit = 'stock.move'
    _order = "id"

stock_move()

And the inner movements are on screen ordered as the sales document. When confirming a sale the moves are created by order_line.sequence.

I try the same for stock_picking but nothing changes.

Any idea how to change the order, or at least at printing time ?

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мар. 15
3626
0
мар. 15
3331
1
нояб. 24
18888
4
янв. 24
39035
0
авг. 22
12223