Inter-Company Rules for Community: Auto SO/PO, Invoice to Vendor Bill, Reconciliation
by Viyug Infotech https://viyuginfotech.com$ย 75.60
Order once. The sister company has it already.
Inter-company rules for Community: sales orders become purchase orders, invoices become vendor bills, deliveries fill receipts, with tax and product mapping, a sync log with retry and an inter-company balance reconciliation.
SO to POInvoice to BillDelivery to ReceiptReconciliation
Free setup call with every purchase
After you buy, book a free 30-minute online call: we install the app with you and set it up for your company. Questions are answered within 24 hours, Monday to Saturday, at support@viyuginfotech.com or on WhatsApp (QR code at the end of this page).
From double entry to one flow
Groups with several companies in one database type every order and invoice twice. Mistakes show up at month end.
Before
- The purchase order is typed again as a sales order
- Every invoice is keyed in again as a vendor bill
- Receipts are guessed from emails
- Balances between companies do not match at closing
After
- Orders, bills and receipts mirrored the moment they are confirmed
- Each document linked to its counterpart in one click
- Failures logged with the reason and retried
- A reconciliation that shows the gap and the documents behind it
How it works
Order in one company
Confirm a sales or purchase order whose customer or vendor is another company of the database.
Mirror in the other
The rule creates the counterpart order with mapped taxes, warehouse and pricelist, as the inter-company user.
Ship and receive
The delivery in one company fills the receipt in the other.
Invoice and bill
Posting the invoice creates the vendor bill linked to the purchase order lines.
Log and retry
Every step is logged. Failures retry by themselves and wait in the review queue.
Reconcile
Compare what each company owes the other, per currency, at any date.
What you get
Orders both ways
A sales order confirmed in company A creates the purchase order in company B. A purchase order creates the sales order. Lines, quantities, units, prices, discounts and delivery dates come across.
Invoices become bills
A posted customer invoice becomes a vendor bill in the sister company, a credit note becomes a refund, and the other way round. Bills are tied to the purchase order lines, so billed quantities stay correct.
Delivery fills the receipt
When company A ships, the receipt in company B gets the shipped quantities and can be validated by itself. A partial shipment leaves a backorder for the rest.
One rule per direction
Each company pair has its own rule: what to mirror, which warehouse, pricelist and journals to use, which user creates the documents and whether they are confirmed or left as drafts.
Several currencies
Documents keep the currency agreed between the two companies. Each company books at its own rate, and the reconciliation compares in that currency.
Tax and product mapping
Sales taxes map to purchase taxes of the sister company, matched by rate in one click. Products owned by one company map to the right product of the other.
Sync log with retry
Every mirrored document has a log line with source, counterpart, totals and status. Failures retry with back-off and end in a dead-letter list instead of disappearing.
Never blocks the user
If the sister company is missing a tax or a product, the order or invoice is still confirmed. The problem is logged with a clear message and a Retry button.
Review queue
Mirrored documents whose total differs from the source, and failed jobs, land in one queue to check and mark as reviewed.
Balance reconciliation
What each company should receive from its sister company against what the other owes, per currency, with the documents that have no counterpart.
Setup wizard
Pick the companies, choose what to mirror, check journals, warehouses and user access, and create all rules with mapped taxes in one step.
Multi-company safe
Documents are created by an inter-company user with its own rights, the source user needs no access to the sister company, and record rules keep logs per company.
Workflow walkthrough
Two fictional companies: Northwind Trading (EUR) buys from its sister company Lakeside Components (USD).
Start the setup wizard
Pick the companies that trade with each other, the inter-company user and what to mirror: orders, invoices, deliveries. Choose whether created orders are confirmed and bills posted, or left as drafts.

Check before you go live
Check Setup looks for sales and purchase journals, a warehouse in each company and the access of the inter-company user. Then Create Rules makes one rule per direction and maps taxes by rate.

One rule per direction
Northwind to Lakeside and Lakeside to Northwind each have their own rule. Done, pending, failed and mismatch counters show the health of every rule at a glance.

Tune the counterpart side
Warehouse, pricelist and price policy, sales and purchase journals, auto-confirm and auto-post, immediate or background processing.

Tax mapping
Each sales tax of one company is mapped to the purchase tax of the other. Auto-map fills the table by rate; taxes not listed are matched the same way at run time.

Northwind confirms a purchase order
The buyer at Northwind Trading orders pumps, valves and seal kits from the sister company Lakeside Components. The Inter-company button shows the sales order created on the other side.

The sales order is already in Lakeside
Lakeside gets a confirmed sales order with the same lines, prices and currency, created by the inter-company user and marked with a ribbon. The chatter says where it came from.

Lakeside ships
The warehouse at Lakeside validates the delivery as usual. Nothing else to do.

Northwind receipt is filled and validated
The receipt at Northwind gets the shipped quantities and is validated by itself, so stock and received quantities on the purchase order are right.

Lakeside invoices the order
The customer invoice is posted in Lakeside. The Inter-company button points to the bill it created.

The vendor bill is waiting at Northwind
The bill has the same lines, taxes mapped to purchase taxes and is linked to the purchase order lines. Accounting confirms it, or the rule posts it directly.

Everything is in the sync log
Each mirrored document has a line with its source, counterpart, totals and status. Group by rule or operation, or switch to the graph and pivot.

Review queue
Failed jobs and documents whose totals differ land here. Here a product that only exists in Northwind could not be used in Lakeside.

Fix and retry
The message says what to do: share the product or map it in the rule. Retry now creates the document; the scheduler also retries with back-off.

Reconcile the balances
Receivable of each company from its sister against the payable on the other side, per currency. An old invoice made before go-live shows up as a document without counterpart.

Setup in 5 steps
- Install the app. Each company needs a chart of accounts and a warehouse.
- Create an inter-company user with Sales, Purchase and Invoicing rights in all companies (optional; otherwise the system user is used).
- Open Inter-Company > Configuration > Setup Wizard, pick the companies and what to mirror.
- Click Check Setup, fix what it lists, then Create Rules. Taxes are mapped by rate.
- Confirm a test order between two companies and watch the Sync Log.
How it compares
| Feature | This app | Typical alternatives |
|---|---|---|
| Confirmed sales order creates the purchase order in the sister company | Yes | Yes |
| Confirmed purchase order creates the sales order | Yes | Yes |
| Customer invoice creates the vendor bill, credit note creates the refund | Yes | Partly |
| Vendor bill creates the customer invoice | Yes | Partly |
| Bills linked to the purchase order lines (billed quantities update) | Yes | No |
| Refund linked to the mirrored bill it reverses | Yes | No |
| Delivery fills the receipt, partial deliveries keep a backorder | Yes | Partly |
| Rule per company pair and direction | Yes | Partly |
| Warehouse, pricelist, journals and user per rule | Yes | Partly |
| Auto-confirm orders and auto-post bills, or keep drafts for review | Yes | Yes |
| Documents keep the agreed currency between companies in different currencies | Yes | Partly |
| Tax mapping table with auto-match by rate | Yes | No |
| Product mapping for products owned by one company | Yes | No |
| Sync log per document with retry, back-off and dead letters | Yes | No |
| Source document is never blocked by a failure in the sister company | Yes | No |
| Review queue for totals that differ between the two companies | Yes | No |
| Inter-company balance reconciliation per currency | Yes | No |
| Setup wizard with a readiness check | Yes | No |
| Background queue option for busy databases | Yes | No |
| Record rules per company, works without sharing data between users | Yes | Partly |
Questions
Does it work on Community?
Yes. It needs Sales, Purchase, Inventory and Invoicing, all part of Community. If Enterprise is installed, do not enable its own inter-company rules for the same companies.
How does it know a partner is a sister company?
Every company has its own contact. When an order or invoice is made for that contact, the rule between the two companies applies.
Can I keep the created documents as drafts?
Yes. Created orders and bills stay drafts unless you tick Confirm Created Orders or Post Created Bills/Invoices on the rule.
What happens if something is missing in the sister company?
The source document is confirmed or posted as normal. The sync log shows a failed line with the reason, for example a tax or product to map. Fix it and click Retry, or let the scheduler retry.
Can it create documents twice?
No. Each source document has one job, and documents created by a rule never trigger the opposite rule, so there are no loops.
What about different currencies?
The counterpart document keeps the currency of the source document. For sales orders a pricelist in that currency is used or created. The reconciliation compares both sides in the transaction currency.
Which prices are used on the created sales order?
By default the prices of the purchase order. Choose Counterpart pricelist on the rule to price with the sister company pricelist; any difference shows in the review queue.
Does the user need access to the other company?
No. Documents are created by the inter-company user of the rule. The person confirming the order only needs access to their own company.
Can lots and serial numbers be copied to the receipt?
Quantities are filled. For tracked products the receipt is left open so the lot or serial numbers can be entered before validation.
Need help or a change?
Questions, another document to mirror, or a flow that does not match yours? Use the Contact Vendor button on this page. Viyug Infotech will get back to you.
Email support: support@viyuginfotech.com
Website: viyuginfotech.com
Scan with your phone to chat on WhatsApp or write us an email:

+91 83207 42187

Send us an email
Release notes
Initial release
- Sales order to purchase order and back, invoice and credit note to bill and refund and back
- Delivery fills receipt with optional validation
- Rules per company pair with warehouse, pricelist, journals, user, auto-confirm and auto-post
- Tax and product mapping, sync log with retry and dead letters, review queue
- Inter-company balance reconciliation and setup wizard
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) • Purchase (purchase) • Inventory (stock) |
| Lines of code | 1450 |
| Technical Name |
viyug_intercompany |
| License | OPL-1 |
| Website | https://viyuginfotech.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module