Skip to Content
Menu
This question has been flagged
1 Reply
968 Views

I have the scenario where when i sell the Product A, i need to ship immediately the Product B to the customer, consideringg Pr. A will arrive 45 days after the order.

In this automated action i am creating a new stock move, picking move.So i have an automated action, and most of it is working but i cannot retrieve:

- Source document, that must be the original sales order of Pr. A (note Pr. B is not in that So).

- Partner name or address to ship, that must be the same shipping address of the SO.

- And i cannot set the product that i want to move.


So, the info es:

Mode: Sales order line

Watched fields: Product category (Just for an specific category) and state of order (just on validated).

Before update, i did a couple of filters.

Action to do: Create a new record.

Create / Write Target model: Transfer (stock.picking).



I can set up the source and destination location, the carrier, operation type but i can't find a way to set the:

Product to move.

Partner address.

Source document.


Any help will be great.

Avatar
Discard
Best Answer

Partner address should be record.order_id.partner_id.city (but you need to check whether it is blank).

If you want the sales order to be the source document that should be record.order_id.name


Maybe this can help you: Automated Action to create project tasks for a sales order


Avatar
Discard