Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 11 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.12 MB
Module directory on disk
Code analysis 0 migration notes 7 models 1 view 0 HTTP endpoints

Description

This module is useful if there are multiple companies in the same Odoo database and those companies sell goods or services among themselves. It allows to create a sale order in company A from a purchase order in company B.

Imagine you have company A and company B in the same Odoo database:

  • Company A purchase goods from company B.
  • Company A will create a purchase order with company B as supplier.
  • This module automate the creation of the sale order in company B with company A as customer.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings form Inherits account_invoice_inter_company.res_config_settings_view_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 7

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • intercompany_sale_order_id Many2one → sale.order
    comodel_name='sale.order' compute='_compute_intercompany_sale_order_id' compute_sudo=True
Public methods (2)
  • button_approve(self, force=False)
    Generate inter company sale order base on conditions.
  • button_cancel(self)

New fields (1)
  • intercompany_sale_line_id Many2one → sale.order.line
    comodel_name='sale.order.line' compute='_compute_intercompany_sale_line_id' compute_sudo=True
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
    Sync lines between an confirmed unlocked purchase and a confirmed unlocked sale order
  • write(self, vals)
    Sync values of confirmed unlocked sales

New fields (3)
  • intercompany_sale_user_id Many2one → res.users
    comodel_name='res.users'
  • sale_auto_validation Boolean
    default=True help='When a Sale Order is created by a multi company rule for this company, it will automatically validate it.' string='Sale Orders Auto Validation'
  • so_from_po Boolean
    help='Generate a Sale Order when a Purchase Order with this company as supplier is created.\n The intercompany user must at least be Sale User.' string='Create Sale Orders when buying to this company'
Public methods (0)

No public methods.

New fields (3)
  • intercompany_sale_user_id Many2one → res.users
    comodel_name='res.users' help='User used to create the sales order arising from a purchase order in another company.' readonly=False related='company_id.intercompany_sale_user_id' string='Intercompany Sale User'
  • sale_auto_validation Boolean
    help='When a Sale Order is created by a multi company rule for this company, it will automatically validate it.' readonly=False related='company_id.sale_auto_validation' string='Sale Orders Auto Validation'
  • so_from_po Boolean
    help='Generate a Sale Order when a Purchase Order with this company as supplier is created.\n The intercompany user must at least be Sale User.' readonly=False related='company_id.so_from_po' string='Create Sale Orders when buying to this company'
Public methods (0)

No public methods.

New fields (1)
  • auto_purchase_order_id Many2one → purchase.order
    comodel_name='purchase.order' copy=False readonly=True string='Source Purchase Order'
Public methods (1)
  • action_confirm(self)

New fields (1)
  • auto_purchase_line_id Many2one → purchase.order.line
    comodel_name='purchase.order.line' copy=False readonly=True string='Source Purchase Order Line'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…