Inter Company Module for Purchase to Sale Order
purchase_sale_inter_company · OCA/multi-company
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity25/25In 11 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idMany2one → sale.ordercomodel_name='sale.order'compute='_compute_intercompany_sale_order_id'compute_sudo=True
-
button_approve(self, force=False)Generate inter company sale order base on conditions. -
button_cancel(self)
New fields (1)
-
intercompany_sale_line_idMany2one → sale.order.linecomodel_name='sale.order.line'compute='_compute_intercompany_sale_line_id'compute_sudo=True
-
create(self, vals_list)@api.model_create_multiSync 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_idMany2one → res.userscomodel_name='res.users' -
sale_auto_validationBooleandefault=Truehelp='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_poBooleanhelp='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'
No public methods.
New fields (3)
-
intercompany_sale_user_idMany2one → res.userscomodel_name='res.users'help='User used to create the sales order arising from a purchase order in another company.'readonly=Falserelated='company_id.intercompany_sale_user_id'string='Intercompany Sale User' -
sale_auto_validationBooleanhelp='When a Sale Order is created by a multi company rule for this company, it will automatically validate it.'readonly=Falserelated='company_id.sale_auto_validation'string='Sale Orders Auto Validation' -
so_from_poBooleanhelp='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=Falserelated='company_id.so_from_po'string='Create Sale Orders when buying to this company'
No public methods.
New fields (1)
-
auto_purchase_order_idMany2one → purchase.ordercomodel_name='purchase.order'copy=Falsereadonly=Truestring='Source Purchase Order'
-
action_confirm(self)
New fields (1)
-
auto_purchase_line_idMany2one → purchase.order.linecomodel_name='purchase.order.line'copy=Falsereadonly=Truestring='Source Purchase Order Line'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…