Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
189 Представления

Hi there,

The normal PO splits the POs according to Vendor. Is it also possible to add another variable by which Odoo shall split a PO? E.g. article A with variable A should create a PO. And another article with variable B will create another PO.


Thank you for your help

Аватар
Отменить

Hello,
Yes, with a bit of customization.

Лучший ответ

Hi,


Yes, you can split Purchase Orders (POs) in Odoo based on variables beyond just the vendor, but it requires customization. One approach involves adding a custom field to the product form (like "PO Split Variable") and creating an automated action that triggers when a PO is confirmed. This action would loop through the PO lines, check the custom field's value, and create new POs for lines with different values, removing them from the original PO.


Alternatively, you can develop a custom Odoo module to override the PO creation process, modifying the _prepare_purchase_order_line method to implement the splitting logic. Before custom development, check the Odoo Apps store for existing apps that offer this functionality. Remember that this customization can be complex, requiring thorough testing and consideration of performance impacts. Consulting an Odoo developer or partner is advisable for intricate splitting rules or if you lack coding expertise.


Hope it helps

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
мая 25
2701
3
дек. 24
8031
1
июл. 24
4052
1
июн. 24
2623
2
июн. 24
3721