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:
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit se| Related Posts | Odpovědi | Zobrazení | Aktivita | |
|---|---|---|---|---|
|
0
úno 21
|
2708 | |||
|
3
říj 25
|
10791 | |||
|
3
zář 25
|
3669 | |||
|
2
srp 25
|
2085 | |||
|
0
srp 25
|
1098 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.