How can I get custom fields of sale order line to MO?
Thanks in advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How can I get custom fields of sale order line to MO?
Thanks in advance.
Hi,
sale_id = self.procurement_group_id.mrp_production_ids.move_dest_ids.group_id.sale_id.id
by this you can get the sale order related to the particular manufacturing order, and from that by calling sale_id.order_line , we get all the order lines of the current sale order( sale_id). By looping ( for line in sale_id.order_line), we get each order and by applying certain condition ( to get the particular order line) and call line.field_name inside the loop for accessing the field value for the current order line.
Regards
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
lut 21
|
2028 | ||
|
2
sie 25
|
1411 | ||
|
0
sie 25
|
164 | ||
|
1
sie 25
|
2122 | ||
|
1
lip 25
|
2591 |