Skip to content

Commit

Permalink
[IMP] purchase_sale_inter_company: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongnmtm committed Mar 26, 2024
1 parent 0386cd1 commit 4dd86a6
Show file tree
Hide file tree
Showing 13 changed files with 121 additions and 94 deletions.
86 changes: 48 additions & 38 deletions purchase_sale_inter_company/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,28 @@ Inter Company Module for Purchase to Sale Order
: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
: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-16-0/multi-company-16-0-purchase_sale_inter_company
: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=16.0
: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.
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.
- 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**

Expand All @@ -45,69 +48,76 @@ Imagine you have company A and company B in the same Odoo database:
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.
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.
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.
- 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:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`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>`:
- 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>`:
- Chafique Delli <[email protected]>
- Alexis de Lattre <[email protected]>
- David Beal <[email protected]>

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

* Maksym Yankin <[email protected]>
- Jairo Llopis
- David Vidal
- Pedro M. Baeza

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

- Maksym Yankin <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -119,6 +129,6 @@ 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.
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.
3 changes: 3 additions & 0 deletions purchase_sale_inter_company/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
7 changes: 7 additions & 0 deletions purchase_sale_inter_company/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
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.
5 changes: 0 additions & 5 deletions purchase_sale_inter_company/readme/CONFIGURE.rst

This file was deleted.

14 changes: 14 additions & 0 deletions purchase_sale_inter_company/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- 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]>\>
17 changes: 0 additions & 17 deletions purchase_sale_inter_company/readme/CONTRIBUTORS.rst

This file was deleted.

11 changes: 11 additions & 0 deletions purchase_sale_inter_company/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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.
8 changes: 0 additions & 8 deletions purchase_sale_inter_company/readme/DESCRIPTION.rst

This file was deleted.

3 changes: 3 additions & 0 deletions purchase_sale_inter_company/readme/INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
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.
1 change: 0 additions & 1 deletion purchase_sale_inter_company/readme/INSTALL.rst

This file was deleted.

6 changes: 6 additions & 0 deletions purchase_sale_inter_company/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- 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.
5 changes: 0 additions & 5 deletions purchase_sale_inter_company/readme/ROADMAP.rst

This file was deleted.

Loading

0 comments on commit 4dd86a6

Please sign in to comment.