Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Multiple customers on Purchase Orders

by
Holger Brunn
- 23/09/2024 12:31:36
> Anyone faced anything similar? I am thinking of using 2 companies to model

> it and tinkering with visibility in each according to split. Because where

> there is a split, they want to see the document in both. Where there is not

> (it belongs to single company), should ony be visible there. However how to

> model in a best way that there should be 2 customers (maybe more for future

> extensions) on each document?

I have a customer with a similar requirement the other way around, where 
multiple suppliers invoice the same customer:
https://github.com/tosccolors/vertical-professional-services/tree/16.0/
ps_partner_multi_relation

They solved this by defining a partner relation "consortium", and every time an 
invoice for a consortium partner is posted, this invoice is split by the 
weights ("distribution key") on the consortium relation and new invoices are 
created for the involved partners.

This concept should extend quite naturally to the purchase side, where you 
split the supplier invoices and deliveries according to the distribution key 
on the partner relation.


-- 
Your partner for the hard Odoo problems
https://hunki-enterprises.com

Reference