Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Different Routes for Products on Different Companies

Subscribe

Get notified when there's activity on this post

This question has been flagged
purchasesalesinventoryroutingscompanies
3 Replies
5088 Views
Avatar
Mohamad Ali Chamas

I have the following case: I have 2 companies, in company 1 I issue a sales order and after issuing it, I developed a code to create a purchase order directly. When I confirm the purchase order, a sales order is created in company 2 after I activated the synchronization option between the 2 companies. The product I have consists of a bom of type kit. How I can make the product in company 1 just issue me a delivery order when I confirm the sales order and at the same time make it issue a manufacturing order when confirmed in company 2. Thanks

0
Avatar
Discard
Avatar
Bhavin Patel
Best Answer

You can create two different routes for the same product in each company.

For Company 1:

Go to the "Inventory" app and select "Routes" under "Configuration".
Click on the "Create" button to create a new route.
Give a name to the route, select "Manufacture" as the operation type, and select the appropriate Manufacturing location as the destination.
Set the "Active" field to true and select Company 1 under "Companies".
Save the route.

For Company 2:

Go to the "Inventory" app and select "Routes" under "Configuration".
Click on the "Create" button to create a new route.
Give a name to the route, select "Ship To" as the operation type, and select the appropriate Customer as the destination.
Set the "Active" field to true and select Company 2 under "Companies".
Save the route.

Next, assign the appropriate route to the product in each company.

For Company 1:

Go to the "Inventory" app and select "Products" under "Master Data".
Open the product for which you want to create a manufacturing order.
In the "Inventory" tab, select the route you created for Company 1 from the "Routes" field.
Save the product.

For Company 2:

Go to the "Inventory" app and select "Products" under "Master Data".
Open the product for which you want to create a delivery order.
In the "Inventory" tab, select the route you created for Company 2 from the "Routes" field.
Save the product.

Now, when you create a sales order in Company 1, a delivery order will be created automatically using the route assigned to the product for Company 2. When you create a purchase order in Company 1, a manufacturing order will be created automatically using the route assigned to the product for Company 1. When you confirm the purchase order, a sales order will be created in Company 2 using the route assigned to the product for Company 2.

2
Avatar
Discard
Mohamad Ali Chamas
Author

I created 2 routes: In company 1 where I need to deliver only. I created a route called 'Ship To' and assigned the action as 'Push To', set the operation type to 'Delivery Orders' and defined the source and destination location. In Company 2, I created a route called 'Manufacture' ,set the action as 'Manufacture', the operation type to 'Manufacturing, and defined the source and destination location. I also make sure to put the correct route for the product in each company. In company1 where I need to deliver, I set the route as 'Ship To' and in company 2 I set it 'Manufacture'. Now, when I create an SO from company1 and confirm it, I am getting a validation error that a product found in the bom has no reordering rules. How can I solve this? Thanks

Bhavin Patel

I think that one of the products in your bill of materials (BOM) doesn't have any reordering rules defined. Reordering rules are used by Odoo to determine when to create a procurement request to purchase or manufacture a product.

To solve this issue, you should define reordering rules for the product that is causing the error. Here are the steps to do this:

Go to the Inventory app and select the "Products" menu item.
Find the product that is causing the error and open its form view.
Select the "Inventory" tab and scroll down to the "Reordering Rules" section.
Click the "Add an item" button to create a new reordering rule.
In the "Procurement Method" field, select "Make To Order" if you manufacture the product or "Buy" if you purchase it.
In the "Minimum Quantity" field, enter the minimum amount of the product that you want to keep in stock before reordering.
In the "Maximum Quantity" field, enter the maximum amount of the product that you want to keep in stock.
In the "Quantity Multiple" field, enter the quantity that you want to order each time you create a procurement request for this product.
In the "Location" field, select the location where you want to stock this product.
Save the reordering rule and the product.

By defining reordering rules for the product, Odoo will now be able to create a procurement request when the stock level falls below the minimum quantity defined in the reordering rule. This should solve the validation error that you are encountering.

Mohamad Ali Chamas
Author

Thank you for the insight, yes I am familiar with the following steps. For now, I just removed the route 'Replenish on Order' on both raw materials. I followed your first answer and now when creating a sales order I am getting only delivery which is right, my code create a PO and then I confirm it. Now, when I go to company 2, I find that the order has no manufacturing smart button created on it, even though I defined the route on company 2 as manufacturing. Can you help please

Bhavin Patel

If I understand correctly, you have set the route 'Manufacturing' on the product in company 2, but when you create a sales order for that product in company 1 and confirm the corresponding purchase order in company 2, you do not see the manufacturing order smart button on the purchase order in company 2.

There could be several reasons why the manufacturing order smart button is not appearing on the purchase order in company 2. Here are some things you can check:

Make sure that the route 'Manufacturing' is actually defined in company 2. You can do this by going to the Inventory app in company 2, selecting the product in question, and checking the 'Routes' tab to see if the 'Manufacturing' route is listed and active.

Make sure that the product in company 2 has a bill of materials (BOM) defined for it. The BOM defines the components and quantities required to manufacture the finished product. If the BOM is not defined, the system will not be able to create a manufacturing order.

Check that the manufacturing settings are properly configured in company 2. Go to the Manufacturing app in company 2 and check the settings under 'Configuration' to ensure that everything is set up correctly.

Verify that the user in company 2 has the necessary access rights to view the manufacturing order smart button. You can do this by going to the user's settings and checking the access rights for the 'Manufacturing Orders' module.

If none of these suggestions solve the issue, please provide more details about the steps you followed and the specific error messages or behaviors you are seeing.

Mohamad Ali Chamas
Author

No, I am creating a sales order in company 1, when I confirm it, it directly creates a purchase order in company 1 (done through code). When I confirm the PO in Company 1 it creates a sales order in Company 2 (This option is activated by synchronizing through companies). What I need: When I confirm the SO in company 1, I just need to create a delivery order. And the SO in company 2, I need it to create me an MO. That's all

Bhavin Patel

Thank you for clarifying your requirements.

To achieve this, you can customize the behavior of the sales and purchase order confirmations in Odoo. Here's an overview of the steps you can follow:

In the Sales module, create a custom module or modify an existing module to override the default behavior of the sales order confirmation. You can do this by creating a new Python class that inherits from the original sales order confirmation class and overrides the create_purchase_order method to create a delivery order instead of a purchase order.

In the Manufacturing module, create a custom module or modify an existing module to override the default behavior of the purchase order confirmation. You can do this by creating a new Python class that inherits from the original purchase order confirmation class and overrides the create_sale_order method to create a manufacturing order instead of a sales order.

Use the Odoo multi-company feature to configure the relationships between the sales and purchase orders in the two companies. You can do this by setting up inter-company rules to automate the creation of the delivery order in Company 1 and the manufacturing order in Company 2.

Test your customizations to make sure that the delivery orders and manufacturing orders are created correctly when the sales and purchase orders are confirmed.

Note that this customization requires some development skills in Python and Odoo. If you are not familiar with Odoo development, you may need to seek assistance from an experienced developer.

Avatar
mike34
Best Answer

There are many steps you must take to accomplish this. I found the above answers very good and helpful, you can refer to them for more information

0
Avatar
Discard
Avatar
Mohamad Ali Chamas
Author Best Answer

Thank you for the insight, yes I am familiar with the following steps. For now, I just removed the route 'Replenish on Order' on both raw materials. I followed your first answer and now when creating a sales order I am getting only delivery which is right, my code create a PO and then I confirm it. Now, when I go to company 2, I find that the order has no manufacturing smart button created on it, even though I defined the route on company 2 as manufacturing. Can you help please

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Repair products in Stock
purchase sales inventory repair
Avatar
Avatar
1
Jul 25
1025
Landed cost without creating PO/SO Solved
purchase sales inventory valuation
Avatar
Avatar
Avatar
Avatar
3
Jan 25
5294
Real cost of good sold with respect to raw materials used
purchase sales inventory invoicing
Avatar
Avatar
Avatar
5
Aug 23
6538
Creation de demo sur odoo.com
purchase sales accounting inventory
Avatar
0
Jun 22
3877
accounting sales and purchase
purchase sales accounting inventory
Avatar
Avatar
1
Nov 19
4352
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now