Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2198 Lượt xem

In the inventory module, in the inventory summaries (delivery orders), I have a Many2one field for analytical accounts, that field appears thanks to this module.

https://apps.odoo.com/apps/modules/16.0/stock_analytic/

If I fill out a record with your analytics account, how can I autofill the analytics account of the following records based on the analytics account that was chosen in the first record?


Example: if in the first record I choose the administrative analytical account, that in the following records the field is auto-completed with that same analytical account.

Thank you!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

The easier option for you to achieve this will be by adding a field in the picking level named Analytic accounts and then when you add lines (stock.move), you can pass this value as default value for newly adding lines.

To achieve this:

* define field in stock.picking to set analytic accounts

* adjust the context of one2many tree and pass default value through the context


Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 23
1745
1
thg 8 21
3013
0
thg 2 18
2773
2
thg 5 25
4239
0
thg 11 22
2491