Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] sale_purchase_inter_company #486

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
323f604
[ADD] purchase_sale_inter_company module
chafique-delli Oct 17, 2016
11d5951
add warehouse_id in the values for create sale order
chafique-delli Oct 18, 2016
6a57274
refactor code after add dependency on account_invoice_inter_company
chafique-delli Nov 21, 2016
29878c4
check product is intercompany
chafique-delli Nov 22, 2016
2c571ed
extend invoice_method field and add action_cancel method for purchase…
chafique-delli Nov 25, 2016
b44d3f0
rename inter_company_po_to_so_view.xml to res_company_view.xml and ad…
chafique-delli Nov 29, 2016
a186121
use product_id_change_with_wh method for return sale line data
chafique-delli Dec 2, 2016
37e298d
fix README file
chafique-delli Dec 2, 2016
7ab1ab2
remove inter company user
chafique-delli Feb 3, 2017
ccac697
remove unnecessary dependencies in openerp.py and update of the unit …
chafique-delli Feb 16, 2017
575b770
add demo data and tests
chafique-delli Feb 16, 2017
7a2a99e
fix partner_shipping_id in _prepare_sale_order_data method
chafique-delli Mar 16, 2017
2451e94
add force_company in context when create inter company sale oder
chafique-delli Mar 28, 2017
a05ae2d
[FIX] fix setting the force company pass the cest_company as an id in…
sebastienbeau Mar 31, 2017
3a2de8f
replace sale_line_vals by sale_line_data
chafique-delli Apr 14, 2017
18e094c
fix tests
chafique-delli Apr 14, 2017
3b53e5c
fix following @elicoidal's comments and add french translation
chafique-delli Apr 20, 2017
736e0e2
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2017
f511542
OCA Transbot updated translations from Transifex
oca-transbot Jul 8, 2017
4ef27ad
fix domain for search users in _check_intercompany_product method
chafique-delli Sep 12, 2017
6fc5ad2
fix multi-company access rights issue
chafique-delli Sep 26, 2017
e5d8af6
OCA Transbot updated translations from Transifex
oca-transbot Oct 28, 2017
0fd411d
[MIG] purchase_sale_inter_company: Migration to 11.0 (from 8.0)
carlosdauden Apr 24, 2018
18a5c97
[IMP] purchase_sale_inter_company: Recover intercompany user
carlosdauden Jul 12, 2018
a4100e7
[FIX] purchase_sale_inter_company: Transfer dropship pickings correctly
pedrobaeza Jul 12, 2018
538a6c2
[IMP] purchase_sale_inter_company: Better relation between docs. Tran…
carlosdauden Aug 7, 2018
ab512d4
[FIX] purchase_sale_inter_company: No buggy demo data
yajo Sep 14, 2018
7e54cdf
[FIX] tests and other issues
chienandalu Nov 9, 2018
3f15a79
[MIG] purchase_sale_inter_company: Migration to 12.0
mourad-ehm Feb 20, 2019
2172337
Update purchase_sale_inter_company/README.rst OCA Review
Feb 21, 2019
c92acb2
Update purchase_sale_inter_company/README.rst OCA review
Feb 21, 2019
3e17843
Update purchase_sale_inter_company/README.rst OCA Review
Feb 21, 2019
4e88bfa
Update purchase_sale_inter_company/README.rst OCA review
Feb 21, 2019
9063a54
Update purchase_sale_inter_company/README.rst OCA review
Feb 21, 2019
8ee85e3
[FIX] OCA Review
mourad-ehm Feb 21, 2019
fe0c795
[FIX] ref uom.product_uom_unit
mourad-ehm Mar 5, 2019
009cb35
[FIX] import Warning
mourad-ehm Mar 5, 2019
ecc6aad
[FIX] import Warning (To squash)
mourad-ehm Mar 5, 2019
ff895f5
[FIX] demo test data
mourad-ehm Mar 5, 2019
b021557
[FIX] add demo product
mourad-ehm Mar 5, 2019
cebf9bd
[FIX] product_qty
mourad-ehm Mar 5, 2019
b23bb80
[FIX] unit test
mourad-ehm Mar 6, 2019
b1c607d
[FIX] pylint
mourad-ehm Mar 7, 2019
b06282d
[FIX] set readonly = false for all res_config_settings fields
mourad-ehm Mar 18, 2019
38f5771
IMP purch_sale_inter_cpny: layout settings
bealdav Mar 19, 2019
c6f9091
[UPD] Update purchase_sale_inter_company.pot
oca-travis Jan 16, 2020
298110e
Added translation using Weblate (Italian)
eLBati Feb 20, 2020
512ce60
Translated using Weblate (Italian)
eLBati Feb 20, 2020
1153b3c
Update translation files
oca-transbot Mar 6, 2020
721767b
[IMP] purchase_sale_inter_company: black, isort
AdriaGForgeFlow Mar 30, 2020
8edbdf5
[13.0][MIG] purchase_sale_inter_company
AdriaGForgeFlow Mar 30, 2020
be55de7
[UPD] Update purchase_sale_inter_company.pot
oca-travis Apr 2, 2020
89ce310
Update translation files
oca-transbot Apr 7, 2020
f46d79e
Added translation using Weblate (Chinese (Simplified))
dong-z Apr 7, 2020
c23d6b3
Translated using Weblate (Chinese (Simplified))
dong-z Apr 7, 2020
137390a
[FIX]purchase_sale_inter_company tests
AaronHForgeFlow Jul 7, 2020
fe6a832
Update translation files
oca-transbot Aug 16, 2020
55b653e
[IMP] purchase_sale_inter_company
AaronHForgeFlow Oct 29, 2020
d402c68
purchase_sale_inter_company 13.0.1.0.1
OCA-git-bot Oct 30, 2020
271f87b
[FIX] purchase_sale_inter_company: commitment_date
chienandalu Nov 25, 2020
9f047ef
purchase_sale_inter_company 13.0.1.0.2
OCA-git-bot Nov 26, 2020
2b1dacf
[FIX] purchase_sale_inter_company: propagate correct uom to sale.orde…
enriquemartin Feb 2, 2021
65840ce
[13.0] formatting
Feb 24, 2021
1fbc004
Translated using Weblate (Spanish)
anasuarez1 Mar 9, 2021
70f34ed
purchase_sale_inter_company 13.0.1.0.4
OCA-git-bot Mar 10, 2021
e5e1ad3
[13.0][FIX] purchase_sale_inter_company, PO->SO error when has line_s…
kittiu May 7, 2021
207d7d9
purchase_sale_inter_company 13.0.1.0.5
OCA-git-bot May 8, 2021
ea50040
[IMP] purchase_sale_inter_company: black, isort, prettier
Jun 29, 2021
48bb1f7
[MIG] purchase_sale_inter_company: Migration to 14.0
Dec 4, 2020
8f724bf
[UPD] Update purchase_sale_inter_company.pot
oca-travis Jun 29, 2021
fdc26e7
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 30, 2022
ecf0d72
[FIX] purchase_sale_inter_company: fix new sale date_order
Kev-Roche Apr 21, 2022
e140360
purchase_sale_inter_company 14.0.1.0.1
OCA-git-bot Jun 7, 2022
4115a1d
[MIG] Migration to version 15.0
DhavalTforgeFlow Jun 20, 2022
2d98e68
[MIG] purchase_sale_inter_company: Migration to 15.0
DhavalTforgeFlow Jun 22, 2022
3483442
[ADD] purchase_sale_inter_company:
yankinmax Aug 4, 2022
eb7a756
[15.0][IMP] purchase_sale_inter_company:
yankinmax Oct 31, 2022
da9c9d1
[15.0][IMP] purchase_sale_inter_company:
yankinmax Oct 31, 2022
fe98082
[15.0][IMP] purchase_sale_inter_company:
yankinmax Dec 1, 2022
cecd5f9
[15.0][IMP] purchase_sale_inter_company:
yankinmax Dec 7, 2022
f7b5d60
[15.0][IMP] purchase_sale_inter_company:
JasminSForgeFlow Jan 2, 2023
1e86e9d
[UPD] Update purchase_sale_inter_company.pot
Jan 10, 2023
d569a83
[UPD] README.rst
OCA-git-bot Jan 10, 2023
4c1603f
Update translation files
weblate Jan 10, 2023
e6d2b2f
[IMP] purchase_sale_inter_company: pre-commit stuff
chafique-delli Feb 3, 2023
b74e761
[MIG] purchase_sale_inter_company: Migration to 16.0
chafique-delli Feb 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 111 additions & 0 deletions purchase_sale_inter_company/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
===============================================
Inter Company Module for Purchase to Sale Order
===============================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmulti--company-lightgray.png?logo=github
:target: https://github.com/OCA/multi-company/tree/16.0/purchase_sale_inter_company
:alt: OCA/multi-company
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/multi-company-16-0/multi-company-16-0-purchase_sale_inter_company
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/133/16.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:
#. Go to the menu *Settings > General Settings*.
#. Go to the tab *Companies / Inter Company OCA features*, in the group *Purchase/Sale*, check the option *Sale from purchase*.
#. If you check the option *Sale Auto Validation* in the configuration of company B, then when you validate a *Purchase Order* in company A with company B as supplier, the *Sale Order* will be automatically validated in company B with company A as customer.

Known issues / Roadmap
======================

* If you want also to have different warehouses for your sales orders you can install `stock` and `purchase_sale_stock_inter_company` will be auto installed.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/multi-company/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/multi-company/issues/new?body=module:%20purchase_sale_inter_company%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Odoo SA
* Akretion
* Tecnativa

Contributors
~~~~~~~~~~~~

* Odoo S.A. (original module `inter_company_rules`)
* Andrea Stirpe <a.stirpe@onestein.nl>
* Adria Gil Sorribes <adria.gil@forgeflow.com>
* Christopher Ormaza <chris.ormaza@forgeflow.com>
* `Akretion <https://www.akretion.com>`:

* Chafique Delli <chafique.delli@akretion.com>
* Alexis de Lattre <alexis.delattre@akretion.com>
* David Beal <david.beal@akretion.com>
* `Tecnativa <https://www.tecnativa.com>`:

* Jairo Llopis
* David Vidal
* Pedro M. Baeza
* `Camptocamp <https://www.camptocamp.com>`:

* Maksym Yankin <maksym.yankin@camptocamp.com>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/multi-company <https://github.com/OCA/multi-company/tree/16.0/purchase_sale_inter_company>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions purchase_sale_inter_company/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions purchase_sale_inter_company/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2013-Today Odoo SA
# Copyright 2016-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Inter Company Module for Purchase to Sale Order",
"summary": "Intercompany PO/SO rules",
"version": "16.0.1.0.0",
"category": "Purchase Management",
"website": "https://github.com/OCA/multi-company",
"author": "Odoo SA, Akretion, Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"depends": ["sale", "purchase", "account_invoice_inter_company"],
"data": ["views/res_config_view.xml"],
}
140 changes: 140 additions & 0 deletions purchase_sale_inter_company/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_sale_inter_company
#
# Translators:
# Rudolf Schnapka <rs@techno-flex.de>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-08-04 15:47+0000\n"
"PO-Revision-Date: 2017-04-22 02:48+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: purchase_sale_inter_company
#: model:ir.model,name:purchase_sale_inter_company.model_res_company
msgid "Companies"
msgstr "Unternehmen"

#. module: purchase_sale_inter_company
#: model:ir.model,name:purchase_sale_inter_company.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model.fields,field_description:purchase_sale_inter_company.field_res_company__so_from_po
#: model:ir.model.fields,field_description:purchase_sale_inter_company.field_res_config_settings__so_from_po
msgid "Create Sale Orders when buying to this company"
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model.fields,help:purchase_sale_inter_company.field_res_company__so_from_po
#: model:ir.model.fields,help:purchase_sale_inter_company.field_res_config_settings__so_from_po
msgid ""
"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."
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model.fields,field_description:purchase_sale_inter_company.field_res_company__intercompany_sale_user_id
#: model:ir.model.fields,field_description:purchase_sale_inter_company.field_res_config_settings__intercompany_sale_user_id
msgid "Intercompany Sale User"
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model,name:purchase_sale_inter_company.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model,name:purchase_sale_inter_company.model_purchase_order
msgid "Purchase Order"
msgstr ""

#. module: purchase_sale_inter_company
#: model_terms:ir.ui.view,arch_db:purchase_sale_inter_company.res_config_settings_view_form
msgid "Purchase/Sale"
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model.fields,field_description:purchase_sale_inter_company.field_res_company__sale_auto_validation
#: model:ir.model.fields,field_description:purchase_sale_inter_company.field_res_config_settings__sale_auto_validation
msgid "Sale Orders Auto Validation"
msgstr ""

#. module: purchase_sale_inter_company
#: model_terms:ir.ui.view,arch_db:purchase_sale_inter_company.res_config_settings_view_form
msgid "Sale from purchase"
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model,name:purchase_sale_inter_company.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model,name:purchase_sale_inter_company.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model.fields,field_description:purchase_sale_inter_company.field_sale_order__auto_purchase_order_id
msgid "Source Purchase Order"
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model.fields,field_description:purchase_sale_inter_company.field_sale_order_line__auto_purchase_line_id
msgid "Source Purchase Order Line"
msgstr ""

#. module: purchase_sale_inter_company
#: code:addons/purchase_sale_inter_company/models/account_move.py:0
#, python-format
msgid "This vendor bill is related with: {}"
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model.fields,help:purchase_sale_inter_company.field_res_config_settings__intercompany_sale_user_id
msgid ""
"User used to create the sales order arising from a purchase order in another "
"company."
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model.fields,help:purchase_sale_inter_company.field_res_company__sale_auto_validation
#: model:ir.model.fields,help:purchase_sale_inter_company.field_res_config_settings__sale_auto_validation
msgid ""
"When a Sale Order is created by a multi company rule for this company, it "
"will automatically validate it."
msgstr ""

#. module: purchase_sale_inter_company
#: code:addons/purchase_sale_inter_company/models/purchase_order.py:0
#, python-format
msgid "You can't cancel an order that is %s"
msgstr ""

#. module: purchase_sale_inter_company
#: code:addons/purchase_sale_inter_company/models/purchase_order.py:0
#, python-format
msgid "You cannot create SO from PO because product '%s' is not intercompany"
msgstr ""

#. module: purchase_sale_inter_company
#: code:addons/purchase_sale_inter_company/models/purchase_order.py:0
#, python-format
msgid ""
"You cannot create SO from PO because sale price list currency is different "
"than purchase price list currency."
msgstr ""

#~ msgid "Invoice"
#~ msgstr "Rechnung"
Loading
Loading