Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3773 Widoki

My POs are linked to my Sales Orders when the Sales orders are confirmed. This is my normal business process.

However, in certain instances I need to manually link a PO to a Sales Order. 

I've added the Sales Order number into the "Source Document" field of the PO, but that doesn't seem to create the link.

How can one achieve this?

Thanks



Awatar
Odrzuć
Najlepsza odpowiedź

It's been some time since I worked with that area but I seem to recall that the purchase.order.line model has a field sale_line_id. If you add that field into your purchase order form, it should do the trick and link the purchase order to the sale order you set manually.

Awatar
Odrzuć

Thanks Jan, I also face the same issue, I have found the field sale_line_id under the purchase.order.line model and since it is a base field when I remove the read-only tick, it gave the following error message:

Properties of base fields cannot be altered in this manner! Please modify them through Python code, preferably through a custom addon.

Najlepsza odpowiedź

I guess you are using Make To Order process, since PO is automatic linked to Sales order.  If a purchase order is created without the trigger from MTO, it is only possible to enter the sales order as information in the purchase order.

The field Source Document is a Text field, without any relations.  With Studio app it is possible to create a Many to one field with relation to a sales order. Enter in the sales order manually in that field.  And the same can be done on the sales order, for information of what purchase order is created. And you will have to update it manually.

But this will only be for information.  Since the Make to Order link is not there.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
kwi 19
2644
2
gru 23
1784
0
paź 24
1353
1
lis 23
2626
0
lis 23
1359