Hi all,
I added a new field on the table "Sale_Order". On the file "sale.py" during the fonction "action_button_confirm", i would like to now the value of the field of the current Order.
Is it possible? How?
Thank you a lot!
Selverine
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi all,
I added a new field on the table "Sale_Order". On the file "sale.py" during the fonction "action_button_confirm", i would like to now the value of the field of the current Order.
Is it possible? How?
Thank you a lot!
Selverine
It is possible to get the value from the new field.
How to do it: make sure you have an object of sale_order. When using the browse method, you can use a dot (.) to access the value. Check the various .py files.
Example (from sale.py, in folder /addons/sale):
'currency_id': self.pool.get('product.pricelist').browse(cr, uid, pricelist_id, context=context).currency_id.id
This will store the value of the ID of the currency of the product.pricelist in the variable currency_id
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ść | |
---|---|---|---|---|
|
1
mar 24
|
1910 | ||
|
1
lut 24
|
925 | ||
|
1
wrz 23
|
1749 | ||
|
0
paź 22
|
1705 | ||
|
1
wrz 20
|
3913 |