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

[17.0][MIG] purchase_sale_inter_company #604

Open
wants to merge 87 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
6294d81
[ADD] purchase_sale_inter_company module
chafique-delli Oct 17, 2016
c8c91f0
add warehouse_id in the values for create sale order
chafique-delli Oct 18, 2016
19f3989
refactor code after add dependency on account_invoice_inter_company
chafique-delli Nov 21, 2016
9ebeec1
check product is intercompany
chafique-delli Nov 22, 2016
01057c4
extend invoice_method field and add action_cancel method for purchase…
chafique-delli Nov 25, 2016
f596245
rename inter_company_po_to_so_view.xml to res_company_view.xml and ad…
chafique-delli Nov 29, 2016
f84487d
use product_id_change_with_wh method for return sale line data
chafique-delli Dec 2, 2016
c703e3f
fix README file
chafique-delli Dec 2, 2016
22e448b
remove inter company user
chafique-delli Feb 3, 2017
e5b8c76
remove unnecessary dependencies in openerp.py and update of the unit …
chafique-delli Feb 16, 2017
623f696
add demo data and tests
chafique-delli Feb 16, 2017
60a33ab
fix partner_shipping_id in _prepare_sale_order_data method
chafique-delli Mar 16, 2017
e83b39a
add force_company in context when create inter company sale oder
chafique-delli Mar 28, 2017
874a82f
[FIX] fix setting the force company pass the cest_company as an id in…
sebastienbeau Mar 31, 2017
d4ff5bd
replace sale_line_vals by sale_line_data
chafique-delli Apr 14, 2017
2caa115
fix tests
chafique-delli Apr 14, 2017
283c2be
fix following @elicoidal's comments and add french translation
chafique-delli Apr 20, 2017
84319fb
fix domain for search users in _check_intercompany_product method
chafique-delli Sep 12, 2017
d8c8a28
fix multi-company access rights issue
chafique-delli Sep 26, 2017
c4753e0
[MIG] purchase_sale_inter_company: Migration to 11.0 (from 8.0)
carlosdauden Apr 24, 2018
8ced001
[IMP] purchase_sale_inter_company: Recover intercompany user
carlosdauden Jul 12, 2018
c56a214
[FIX] purchase_sale_inter_company: Transfer dropship pickings correctly
pedrobaeza Jul 12, 2018
4ab2515
[IMP] purchase_sale_inter_company: Better relation between docs. Tran…
carlosdauden Aug 7, 2018
8813a26
[FIX] purchase_sale_inter_company: No buggy demo data
yajo Sep 14, 2018
3138d38
[FIX] tests and other issues
chienandalu Nov 9, 2018
6f91ae5
[MIG] purchase_sale_inter_company: Migration to 12.0
mourad-ehm Feb 20, 2019
629013b
Update purchase_sale_inter_company/README.rst OCA Review
Feb 21, 2019
9f30286
Update purchase_sale_inter_company/README.rst OCA review
Feb 21, 2019
d77df5b
Update purchase_sale_inter_company/README.rst OCA Review
Feb 21, 2019
5caec21
Update purchase_sale_inter_company/README.rst OCA review
Feb 21, 2019
32194db
Update purchase_sale_inter_company/README.rst OCA review
Feb 21, 2019
cab4cda
[FIX] OCA Review
mourad-ehm Feb 21, 2019
f5c6b67
[FIX] ref uom.product_uom_unit
mourad-ehm Mar 5, 2019
a89dd14
[FIX] import Warning
mourad-ehm Mar 5, 2019
60b0160
[FIX] import Warning (To squash)
mourad-ehm Mar 5, 2019
867a002
[FIX] demo test data
mourad-ehm Mar 5, 2019
c933a39
[FIX] add demo product
mourad-ehm Mar 5, 2019
83802fc
[FIX] product_qty
mourad-ehm Mar 5, 2019
3aa7483
[FIX] unit test
mourad-ehm Mar 6, 2019
200b2af
[FIX] pylint
mourad-ehm Mar 7, 2019
e5931a4
[FIX] set readonly = false for all res_config_settings fields
mourad-ehm Mar 18, 2019
fda8696
IMP purch_sale_inter_cpny: layout settings
bealdav Mar 19, 2019
d859208
Added translation using Weblate (Italian)
eLBati Feb 20, 2020
be4c846
Translated using Weblate (Italian)
eLBati Feb 20, 2020
b032ff6
[IMP] purchase_sale_inter_company: black, isort
AdriaGForgeFlow Mar 30, 2020
cbbe220
[13.0][MIG] purchase_sale_inter_company
AdriaGForgeFlow Mar 30, 2020
4d77799
Added translation using Weblate (Chinese (Simplified))
dong-z Apr 7, 2020
1002a46
Translated using Weblate (Chinese (Simplified))
dong-z Apr 7, 2020
32d40d1
[FIX]purchase_sale_inter_company tests
AaronHForgeFlow Jul 7, 2020
6c19e14
[IMP] purchase_sale_inter_company
AaronHForgeFlow Oct 29, 2020
679a813
[FIX] purchase_sale_inter_company: commitment_date
chienandalu Nov 25, 2020
2b13143
[FIX] purchase_sale_inter_company: propagate correct uom to sale.orde…
enriquemartin Feb 2, 2021
0148c8b
[13.0] formatting
Feb 24, 2021
3c84fdd
Translated using Weblate (Spanish)
anasuarez1 Mar 9, 2021
21f51f5
[13.0][FIX] purchase_sale_inter_company, PO->SO error when has line_s…
kittiu May 7, 2021
3fdda5c
[IMP] purchase_sale_inter_company: black, isort, prettier
Jun 29, 2021
7990134
[MIG] purchase_sale_inter_company: Migration to 14.0
Dec 4, 2020
f510384
[FIX] purchase_sale_inter_company: fix new sale date_order
Kev-Roche Apr 21, 2022
c8e595f
[MIG] Migration to version 15.0
DhavalTforgeFlow Jun 20, 2022
dbc3b0e
[MIG] purchase_sale_inter_company: Migration to 15.0
DhavalTforgeFlow Jun 22, 2022
b5b738c
[ADD] purchase_sale_inter_company:
yankinmax Aug 4, 2022
4928dde
[15.0][IMP] purchase_sale_inter_company:
yankinmax Oct 31, 2022
a14c326
[15.0][IMP] purchase_sale_inter_company:
yankinmax Oct 31, 2022
1a54785
[15.0][IMP] purchase_sale_inter_company:
yankinmax Dec 1, 2022
2fd861d
[15.0][IMP] purchase_sale_inter_company:
yankinmax Dec 7, 2022
65a933c
[15.0][IMP] purchase_sale_inter_company:
JasminSForgeFlow Jan 2, 2023
cb1b8b6
[FIX] purchase_sale_inter_company: typo in readme
MiquelRForgeFlow Feb 8, 2023
1b7fe60
Translated using Weblate (Italian)
francesco-ooops Feb 14, 2023
296cd0e
Translated using Weblate (Italian)
francesco-ooops Apr 7, 2023
29e4ee8
[MIG] purchase_sale_inter_company: Migration to 16.0
victoralmau Sep 25, 2023
f0b5393
[UPD] Update purchase_sale_inter_company.pot
Sep 26, 2023
a067a08
[BOT] post-merge updates
OCA-git-bot Sep 26, 2023
f60436c
Update translation files
weblate Oct 9, 2023
a465008
Translated using Weblate (Spanish)
Ivorra78 Oct 9, 2023
ded2f3a
[FIX] purchase_sale_inter_company: sync confirmed unlocked purchase u…
chienandalu Dec 27, 2023
03e3ab0
[UPD] Update purchase_sale_inter_company.pot
Jan 2, 2024
3444d37
[BOT] post-merge updates
OCA-git-bot Jan 2, 2024
6dae02c
Update translation files
weblate Jan 2, 2024
07eb2ba
Translated using Weblate (Spanish)
Ivorra78 Jan 2, 2024
47c002a
[IMP] purchase_sale_inter_company: add method _check_intercompany_pro…
JordiBForgeFlow Jan 7, 2024
2776eb6
[UPD] Update purchase_sale_inter_company.pot
Jan 10, 2024
0472613
[BOT] post-merge updates
OCA-git-bot Jan 10, 2024
53c6eb8
Update translation files
weblate Jan 10, 2024
0ac7c3a
Translated using Weblate (Italian)
mymage Feb 2, 2024
cb54fec
[IMP] purchase_sale_inter_company: return created SO
JordiMForgeFlow Nov 21, 2024
017653e
[IMP] purchase_sale_inter_company: pre-commit auto fixes
cuongnmtm Mar 26, 2024
38a8660
[MIG] purchase_sale_inter_company: Migration to 17.0
cuongnmtm Mar 26, 2024
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
138 changes: 138 additions & 0 deletions purchase_sale_inter_company/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
===============================================
Inter Company Module for Purchase to Sale Order
===============================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:8afec057f60529d15735ab62ab11ca70230885d40c35f8279df36b888066b8a0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.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-17-0/multi-company-17-0-purchase_sale_inter_company
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/multi-company&target_branch=17.0
:alt: Try me on Runboat

|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:

Installation
============

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

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

To configure this module, you need to: #. go to the menu *General
Settings > Companies > Companies*. #. Select one of the companies. #. Go
to the tab *Inter-Company* then the group *Purchase To Sale*. #. 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
======================

- No synchronization is made from the generated sale order back to the
purchase order. This would be interesting in the case of price
changes and discounts, that would be transmitted to the purchase so
both documents couldn't have different total amounts, taxes, etc. A
mechanism for synching from the sale to the purchase order would be
needed.

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/multi-company/issues/new?body=module:%20purchase_sale_inter_company%0Aversion:%2017.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 <[email protected]>
- Adria Gil Sorribes <[email protected]>
- Christopher Ormaza <[email protected]>
- \`Akretion <https://www.akretion.com>\`:

- Chafique Delli <[email protected]>
- Alexis de Lattre <[email protected]>
- David Beal <[email protected]>

- \`Tecnativa <https://www.tecnativa.com>\`:

- Jairo Llopis
- David Vidal
- Pedro M. Baeza

- \`Camptocamp <https://www.camptocamp.com>\`:

- Maksym Yankin <[email protected]>

- \`Komit <https://komit-consulting.com>\`:

- Cuong Nguyen Mtm <[email protected]>

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/17.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": "17.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"],
}
173 changes: 173 additions & 0 deletions purchase_sale_inter_company/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_sale_inter_company
#
# Translators:
# Rudolf Schnapka <[email protected]>, 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 <[email protected]>, 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_purchase_order_line__intercompany_sale_line_id
msgid "Intercompany Sale Line"
msgstr ""

#. module: purchase_sale_inter_company
#: model:ir.model.fields,field_description:purchase_sale_inter_company.field_purchase_order__intercompany_sale_order_id
msgid "Intercompany Sale Order"
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:ir.model,name:purchase_sale_inter_company.model_purchase_order_line
msgid "Purchase Order Line"
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
#. odoo-python
#: code:addons/purchase_sale_inter_company/models/purchase_order_line.py:0
#, python-format
msgid ""
"The generated sale orders with reference %(orders)s can't be modified. "
"They're either unconfirmed or locked for modifications."
msgstr ""

#. module: purchase_sale_inter_company
#. odoo-python
#: 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
#. odoo-python
#: 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
#. odoo-python
#: code:addons/purchase_sale_inter_company/models/purchase_order_line.py:0
#, python-format
msgid ""
"You can't change this purchase order as the corresponding sale is %(state)s"
msgstr ""

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

#. module: purchase_sale_inter_company
#. odoo-python
#: 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 ""
Loading
Loading