From 017653e5bc26d2affdf9434f53d9adcb66e62524 Mon Sep 17 00:00:00 2001 From: "Cuong, Nguyen Minh Tran Manh" Date: Tue, 26 Mar 2024 19:20:49 +0700 Subject: [PATCH] [IMP] purchase_sale_inter_company: pre-commit auto fixes --- purchase_sale_inter_company/README.rst | 86 +++++++++++-------- purchase_sale_inter_company/pyproject.toml | 3 + .../readme/CONFIGURE.md | 7 ++ .../readme/CONFIGURE.rst | 5 -- .../readme/CONTRIBUTORS.md | 14 +++ .../readme/CONTRIBUTORS.rst | 17 ---- .../readme/DESCRIPTION.md | 11 +++ .../readme/DESCRIPTION.rst | 8 -- purchase_sale_inter_company/readme/INSTALL.md | 3 + .../readme/INSTALL.rst | 1 - purchase_sale_inter_company/readme/ROADMAP.md | 6 ++ .../readme/ROADMAP.rst | 5 -- .../static/description/index.html | 49 ++++++----- 13 files changed, 121 insertions(+), 94 deletions(-) create mode 100644 purchase_sale_inter_company/pyproject.toml create mode 100644 purchase_sale_inter_company/readme/CONFIGURE.md delete mode 100644 purchase_sale_inter_company/readme/CONFIGURE.rst create mode 100644 purchase_sale_inter_company/readme/CONTRIBUTORS.md delete mode 100644 purchase_sale_inter_company/readme/CONTRIBUTORS.rst create mode 100644 purchase_sale_inter_company/readme/DESCRIPTION.md delete mode 100644 purchase_sale_inter_company/readme/DESCRIPTION.rst create mode 100644 purchase_sale_inter_company/readme/INSTALL.md delete mode 100644 purchase_sale_inter_company/readme/INSTALL.rst create mode 100644 purchase_sale_inter_company/readme/ROADMAP.md delete mode 100644 purchase_sale_inter_company/readme/ROADMAP.rst diff --git a/purchase_sale_inter_company/README.rst b/purchase_sale_inter_company/README.rst index 4d50c65326a..7a92739e0b5 100644 --- a/purchase_sale_inter_company/README.rst +++ b/purchase_sale_inter_company/README.rst @@ -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** @@ -45,25 +48,30 @@ 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 =========== @@ -71,7 +79,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -79,35 +87,37 @@ Credits ======= Authors -~~~~~~~ +------- * Odoo SA * Akretion * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* Odoo S.A. (original module `inter_company_rules`) -* Andrea Stirpe -* Adria Gil Sorribes -* Christopher Ormaza -* `Akretion `: +- Odoo S.A. (original module inter_company_rules) +- Andrea Stirpe +- Adria Gil Sorribes +- Christopher Ormaza +- \`Akretion \`: - * Chafique Delli - * Alexis de Lattre - * David Beal -* `Tecnativa `: + - Chafique Delli + - Alexis de Lattre + - David Beal - * Jairo Llopis - * David Vidal - * Pedro M. Baeza -* `Camptocamp `: +- \`Tecnativa \`: - * Maksym Yankin + - Jairo Llopis + - David Vidal + - Pedro M. Baeza + +- \`Camptocamp \`: + + - Maksym Yankin Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -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 `_ project on GitHub. +This module is part of the `OCA/multi-company `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/purchase_sale_inter_company/pyproject.toml b/purchase_sale_inter_company/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/purchase_sale_inter_company/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/purchase_sale_inter_company/readme/CONFIGURE.md b/purchase_sale_inter_company/readme/CONFIGURE.md new file mode 100644 index 00000000000..60f50bff81e --- /dev/null +++ b/purchase_sale_inter_company/readme/CONFIGURE.md @@ -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. diff --git a/purchase_sale_inter_company/readme/CONFIGURE.rst b/purchase_sale_inter_company/readme/CONFIGURE.rst deleted file mode 100644 index 496361e73fd..00000000000 --- a/purchase_sale_inter_company/readme/CONFIGURE.rst +++ /dev/null @@ -1,5 +0,0 @@ -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. diff --git a/purchase_sale_inter_company/readme/CONTRIBUTORS.md b/purchase_sale_inter_company/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..88371203892 --- /dev/null +++ b/purchase_sale_inter_company/readme/CONTRIBUTORS.md @@ -0,0 +1,14 @@ +- Odoo S.A. (original module inter_company_rules) +- Andrea Stirpe \<\> +- Adria Gil Sorribes \<\> +- Christopher Ormaza \<\> +- \`Akretion \<\>\`: + - Chafique Delli \<\> + - Alexis de Lattre \<\> + - David Beal \<\> +- \`Tecnativa \<\>\`: + - Jairo Llopis + - David Vidal + - Pedro M. Baeza +- \`Camptocamp \<\>\`: + - Maksym Yankin \<\> diff --git a/purchase_sale_inter_company/readme/CONTRIBUTORS.rst b/purchase_sale_inter_company/readme/CONTRIBUTORS.rst deleted file mode 100644 index d34882913d6..00000000000 --- a/purchase_sale_inter_company/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,17 +0,0 @@ -* Odoo S.A. (original module `inter_company_rules`) -* Andrea Stirpe -* Adria Gil Sorribes -* Christopher Ormaza -* `Akretion `: - - * Chafique Delli - * Alexis de Lattre - * David Beal -* `Tecnativa `: - - * Jairo Llopis - * David Vidal - * Pedro M. Baeza -* `Camptocamp `: - - * Maksym Yankin diff --git a/purchase_sale_inter_company/readme/DESCRIPTION.md b/purchase_sale_inter_company/readme/DESCRIPTION.md new file mode 100644 index 00000000000..726356c4a5f --- /dev/null +++ b/purchase_sale_inter_company/readme/DESCRIPTION.md @@ -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. diff --git a/purchase_sale_inter_company/readme/DESCRIPTION.rst b/purchase_sale_inter_company/readme/DESCRIPTION.rst deleted file mode 100644 index aa645c6dce7..00000000000 --- a/purchase_sale_inter_company/readme/DESCRIPTION.rst +++ /dev/null @@ -1,8 +0,0 @@ -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. diff --git a/purchase_sale_inter_company/readme/INSTALL.md b/purchase_sale_inter_company/readme/INSTALL.md new file mode 100644 index 00000000000..4fec76d793a --- /dev/null +++ b/purchase_sale_inter_company/readme/INSTALL.md @@ -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. diff --git a/purchase_sale_inter_company/readme/INSTALL.rst b/purchase_sale_inter_company/readme/INSTALL.rst deleted file mode 100644 index 9de7b75a8e0..00000000000 --- a/purchase_sale_inter_company/readme/INSTALL.rst +++ /dev/null @@ -1 +0,0 @@ -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. diff --git a/purchase_sale_inter_company/readme/ROADMAP.md b/purchase_sale_inter_company/readme/ROADMAP.md new file mode 100644 index 00000000000..9608e90b72a --- /dev/null +++ b/purchase_sale_inter_company/readme/ROADMAP.md @@ -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. diff --git a/purchase_sale_inter_company/readme/ROADMAP.rst b/purchase_sale_inter_company/readme/ROADMAP.rst deleted file mode 100644 index df229527e82..00000000000 --- a/purchase_sale_inter_company/readme/ROADMAP.rst +++ /dev/null @@ -1,5 +0,0 @@ -* 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. diff --git a/purchase_sale_inter_company/static/description/index.html b/purchase_sale_inter_company/static/description/index.html index 26902bfdb64..42a6054248f 100644 --- a/purchase_sale_inter_company/static/description/index.html +++ b/purchase_sale_inter_company/static/description/index.html @@ -1,3 +1,4 @@ + @@ -368,14 +369,17 @@

Inter Company Module for Purchase to Sale Order

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:8afec057f60529d15735ab62ab11ca70230885d40c35f8279df36b888066b8a0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/multi-company Translate me on Weblate Try me on Runboat

-

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.

+

Beta License: AGPL-3 OCA/multi-company Translate me on Weblate Try me on Runboat

+

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.
  • +
  • This module automate the creation of the sale order in company B with +company A as customer.

Table of contents

@@ -394,23 +398,28 @@

Inter Company Module for Purchase to Sale Order

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 +
  • 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.
@@ -419,7 +428,7 @@

Bug Tracker

Bugs are tracked on GitHub 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.

+feedback.

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

@@ -435,23 +444,23 @@

Authors

Contributors