Repository
OCA/multi-company · module folder · Try on Runboat
Module version
1.0.2
Category
Accounting & Finance
Folder size
0.22 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/multi-company
Last tracking update
2026-08-07 09:06:27
Authors
Akretion, Odoo SA, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo SA, Odoo Community Association (OCA)
Committers
JordiMForgeFlow, Weblate, OCA-git-bot, oca-ci, JasminSForgeFlow
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
purchase_sale_inter_company
Description
This module is usefull if there are multiple companies in the same Odoo
database and those companies sell goods or services among themselves. It
allow to create an invoice in company A from an invoice in company B.

Imagine you have company A and company B in the same Odoo database.
First scenario: company B create an invoice with company A as customer.
The module will automate the generation of the supplier invoice in
company A. Second scenario: company A create an invoice with company B
as supplier. The module will automate the generation of the customer
invoice in company B.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings form Inherits base_setup.res_config_settings_view_form
view_move_form account.move.form - HACK: Extra fields for odoo.tests.Form() to work account.move form Inherits account.view_move_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (2)
  • auto_generated Boolean
    copy=False default=False args: 'Auto Generated Document'
  • auto_invoice_id Many2one → account.move
    copy=False prefetch=False readonly=True string='Source Invoice' args: 'account.move'
Public methods (4)
  • action_post(self)
    Validated invoice generate cross invoice base on company rules
  • button_cancel(self)
  • button_draft(self)
  • write(self, vals)

New fields (1)
  • auto_invoice_line_id Many2one → account.move.line
    copy=False prefetch=False readonly=True string='Source Invoice Line' args: 'account.move.line'
Public methods (0)

No public methods.

New fields (3)
  • intercompany_invoice_user_id Many2one → res.users
    help='Responsible user for creation of invoices triggered by intercompany rules.' string='Inter Company Invoice User' args: 'res.users'
  • intercompany_invoicing Boolean
    default=True help='Enable intercompany invoicing: \n* Generate a Customer Invoice when a bill with this company is created.\n* Generate a Vendor Bill when an invoice with this company as a customer is created.' string='Generate Inter company Invoices'
  • invoice_auto_validation Boolean
    default=True help='When an invoice is created by a multi company rule for this company, it will automatically validate it'
Public methods (0)

No public methods.

New fields (3)
  • intercompany_invoice_user_id Many2one
    help='Responsible user for creation of invoices triggered by intercompany rules. If not set the user initiating thetransaction will be used' readonly=False related='company_id.intercompany_invoice_user_id'
  • intercompany_invoicing Boolean
    help='Enable intercompany invoicing: \n * Generate a Customer Invoice when a bill with this company is created.\n * Generate a Vendor Bill when an invoice with this company as a customer is created.' readonly=False related='company_id.intercompany_invoicing' string='Generate Inter company Invoices'
  • invoice_auto_validation Boolean
    help='When an invoice is created by a multi company rule for this company, it will automatically validate it.' readonly=False related='company_id.invoice_auto_validation' string='Invoices Auto Validation'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…