Hello!
I'm trying to figure out a way to know if a stock_picking (Transfer) is IN or OUT via code. (v17)
Anybody knows how?
Thanks in advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello!
I'm trying to figure out a way to know if a stock_picking (Transfer) is IN or OUT via code. (v17)
Anybody knows how?
Thanks in advance.
Use the field picking_type_code
'incoming' = Receipt (IN)
'outgoing' = Delivery (OUT)
'internal' = Internal Transfer (INT)
'mrp_operation' = Manufacturing (MO)
'repair_operation' = Repair (RO)
'dropship' = Dropship (DS)
See:
https://github.com/odoo/odoo/blob/17.0/addons/stock/models/stock_picking.py#L474
https://github.com/odoo/odoo/blob/17.0/addons/stock/models/stock_picking.py#L45
https://github.com/odoo/odoo/blob/17.0/addons/mrp/models/stock_picking.py#L10
https://github.com/odoo/odoo/blob/17.0/addons/repair/models/stock_picking.py#L14
https://github.com/odoo/odoo/blob/17.0/addons/stock_dropshipping/models/stock.py#L46
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
Invoice Stock Move
Résolu
|
|
1
sept. 23
|
3164 | |
|
0
mars 23
|
1820 | ||
|
0
mars 18
|
2771 | ||
|
3
févr. 20
|
3469 | ||
|
0
oct. 17
|
3061 |