diff --git a/README.md b/README.md index b500b1e0716..eb4192cf6a2 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ addon | version | maintainers | summary [sale_order_lot_selection](sale_order_lot_selection/) | 17.0.1.0.0 | [![bodedra](https://github.com/bodedra.png?size=30px)](https://github.com/bodedra) | Sale Order Lot Selection [sale_order_price_recalculation](sale_order_price_recalculation/) | 17.0.1.0.0 | | Recalculate prices / Reset descriptions on sale order lines [sale_order_priority](sale_order_priority/) | 17.0.1.0.1 | | Define priority on sale orders +[sale_order_product_availability_inline](sale_order_product_availability_inline/) | 17.0.1.0.0 | [![ernestotejeda](https://github.com/ernestotejeda.png?size=30px)](https://github.com/ernestotejeda) | Show product availability in sales order line product drop-down. [sale_order_product_recommendation](sale_order_product_recommendation/) | 17.0.1.0.0 | [![sergio-teruel](https://github.com/sergio-teruel.png?size=30px)](https://github.com/sergio-teruel) [![rafaelbn](https://github.com/rafaelbn.png?size=30px)](https://github.com/rafaelbn) [![yajo](https://github.com/yajo.png?size=30px)](https://github.com/yajo) | Recommend products to sell to customer based on history [sale_order_qty_change_no_recompute](sale_order_qty_change_no_recompute/) | 17.0.1.0.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Prevent recompute if only quantity has changed in sale order line [sale_order_revision](sale_order_revision/) | 17.0.1.0.0 | | Keep track of revised quotations @@ -66,6 +67,7 @@ addon | version | maintainers | summary [sale_product_multi_add](sale_product_multi_add/) | 17.0.1.0.0 | | Sale Product Multi Add [sale_product_set](sale_product_set/) | 17.0.1.0.0 | | Sale product set [sale_quotation_number](sale_quotation_number/) | 17.0.1.1.2 | | Different sequence for sale quotations +[sale_readonly_security](sale_readonly_security/) | 17.0.1.0.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Sale Readonly Security [sale_shipping_info_helper](sale_shipping_info_helper/) | 17.0.1.0.0 | | Add shipping amounts on sale order [sale_sourced_by_line](sale_sourced_by_line/) | 17.0.1.0.0 | | Multiple warehouse source locations for Sale order [sale_start_end_dates](sale_start_end_dates/) | 17.0.1.0.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) | Adds start date and end date on sale order lines diff --git a/pandoc-3.3-1-amd64.deb b/pandoc-3.3-1-amd64.deb new file mode 100644 index 00000000000..65e9c2d9002 Binary files /dev/null and b/pandoc-3.3-1-amd64.deb differ diff --git a/sale_cancel_reason/i18n/ca.po b/sale_cancel_reason/i18n/ca.po index 8aaf4ab58a1..ce5e2786cc4 100644 --- a/sale_cancel_reason/i18n/ca.po +++ b/sale_cancel_reason/i18n/ca.po @@ -9,24 +9,25 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-11-23 01:51+0000\n" -"PO-Revision-Date: 2017-11-23 01:51+0000\n" -"Last-Translator: OCA Transbot , 2017\n" +"PO-Revision-Date: 2025-02-06 10:06+0000\n" +"Last-Translator: pere-aquarian \n" "Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" "Language: ca\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" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.6.2\n" #. module: sale_cancel_reason #: model:ir.model,name:sale_cancel_reason.model_sale_mass_cancel_orders msgid "Cancel multiple quotations" -msgstr "" +msgstr "Cancel·lar múltiples pressupostos" #. module: sale_cancel_reason #: model_terms:ir.ui.view,arch_db:sale_cancel_reason.view_order_form msgid "Cancellation reason:" -msgstr "" +msgstr "Motiu de cancel·lació:" #. module: sale_cancel_reason #: model_terms:ir.ui.view,arch_db:sale_cancel_reason.view_sale_order_cancel @@ -34,6 +35,8 @@ msgid "" "Choose the reason for the cancellation of the\n" " sale order." msgstr "" +"Tria el motiu de cancel·lació del\n" +" pressupost o comanda." #. module: sale_cancel_reason #: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__create_uid @@ -48,7 +51,7 @@ msgstr "Creat el" #. module: sale_cancel_reason #: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__display_name msgid "Display Name" -msgstr "" +msgstr "Nom mostrat" #. module: sale_cancel_reason #: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__id @@ -58,7 +61,7 @@ msgstr "ID" #. module: sale_cancel_reason #: model:sale.order.cancel.reason,name:sale_cancel_reason.cancel_reason_only_quotation msgid "Just for Quotation" -msgstr "" +msgstr "Només per a pressupost" #. module: sale_cancel_reason #: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__write_uid @@ -73,46 +76,46 @@ msgstr "Darrera Actualització el" #. module: sale_cancel_reason #: model:sale.order.cancel.reason,name:sale_cancel_reason.cancel_reason_other_provider msgid "Other Service Provider selected" -msgstr "" +msgstr "S'ha triat un altre proveïdor de serveis" #. module: sale_cancel_reason #: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_mass_cancel_orders__reason_id #: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel__reason_id #: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__name msgid "Reason" -msgstr "" +msgstr "Motiu" #. module: sale_cancel_reason #: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order__cancel_reason_id msgid "Reason for cancellation" -msgstr "" +msgstr "Motiu de cancel·lació" #. module: sale_cancel_reason #: model:ir.actions.act_window,name:sale_cancel_reason.action_sale_order_cancel_reason #: model:ir.model,name:sale_cancel_reason.model_sale_order_cancel_reason msgid "Sale Order Cancel Reason" -msgstr "" +msgstr "Motiu de cancel·lació del pressupost o comanda" #. module: sale_cancel_reason #: model:ir.ui.menu,name:sale_cancel_reason.menu_sale_order_cancel_reason #: model_terms:ir.ui.view,arch_db:sale_cancel_reason.view_sale_order_cancel_reason_form msgid "Sale Order Cancel Reasons" -msgstr "" +msgstr "Motius de cancel·lació de pressupostos/comandes" #. module: sale_cancel_reason #: model:ir.model,name:sale_cancel_reason.model_sale_order msgid "Sales Order" -msgstr "" +msgstr "Pressupost/Comanda" #. module: sale_cancel_reason #: model:ir.model,name:sale_cancel_reason.model_sale_order_cancel msgid "Sales Order Cancel" -msgstr "" +msgstr "Cancel·lació del pressupost/comanda" #. module: sale_cancel_reason #: model:sale.order.cancel.reason,name:sale_cancel_reason.cancel_reason_no_service_needed msgid "Service no longer needed" -msgstr "" +msgstr "El servei ja no és necessari" #, fuzzy #~| msgid "Sales Order" diff --git a/sale_order_product_availability_inline/README.rst b/sale_order_product_availability_inline/README.rst new file mode 100644 index 00000000000..82f695f2e39 --- /dev/null +++ b/sale_order_product_availability_inline/README.rst @@ -0,0 +1,112 @@ +====================================== +Sale Order Product Availability Inline +====================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:688f99946dbceb8ec2c60c5531dc75a77c3160f942ffedce72756f72ef59a651 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png + :target: https://odoo-community.org/page/development-status + :alt: Mature +.. |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%2Fsale--workflow-lightgray.png?logo=github + :target: https://github.com/OCA/sale-workflow/tree/17.0/sale_order_product_availability_inline + :alt: OCA/sale-workflow +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_order_product_availability_inline + :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/sale-workflow&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the functionality of 'Sales and Warehouse +Management' to show you the stock availability (Free To Use Quantity) of +each product as part of its name in the product drop-down widget on +sales order lines. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +1. Go to *Sales > Orders > Orders* and choose an existing sales order or + create a new one. +2. Click on 'Add a product' under 'Order Lines' tab, then click on + 'Product' field to deploy products list. +3. You will see stock availability (Free To Use Quantity) of each + product as part of their name. + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Tecnativa + +Contributors +------------ + +- `Tecnativa `__: + + - Ernesto Tejeda + - Pedro M. Baeza + - César A. Sánchez + - Luis D. Lafaurie + +- `Pesol `__: + + - Jonathan Oscategui Taza + +- `Sodexis `__: + + - SodexisTeam + +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. + +.. |maintainer-ernestotejeda| image:: https://github.com/ernestotejeda.png?size=40px + :target: https://github.com/ernestotejeda + :alt: ernestotejeda + +Current `maintainer `__: + +|maintainer-ernestotejeda| + +This module is part of the `OCA/sale-workflow `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_order_product_availability_inline/__init__.py b/sale_order_product_availability_inline/__init__.py new file mode 100644 index 00000000000..3275ac2adf3 --- /dev/null +++ b/sale_order_product_availability_inline/__init__.py @@ -0,0 +1,2 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from . import models diff --git a/sale_order_product_availability_inline/__manifest__.py b/sale_order_product_availability_inline/__manifest__.py new file mode 100644 index 00000000000..d459cca9d5b --- /dev/null +++ b/sale_order_product_availability_inline/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2020 Tecnativa - Ernesto Tejeda +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "Sale Order Product Availability Inline", + "summary": "Show product availability in sales order line product " "drop-down.", + "version": "17.0.1.0.0", + "development_status": "Mature", + "category": "Sales Management", + "website": "https://github.com/OCA/sale-workflow", + "author": "Tecnativa, Odoo Community Association (OCA)", + "maintainers": ["ernestotejeda"], + "license": "AGPL-3", + "depends": ["sale_stock", "base_view_inheritance_extension"], + "data": ["views/sale_views.xml"], +} diff --git a/sale_order_product_availability_inline/i18n/ca.po b/sale_order_product_availability_inline/i18n/ca.po new file mode 100644 index 00000000000..24643e66931 --- /dev/null +++ b/sale_order_product_availability_inline/i18n/ca.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_product_availability_inline +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-06-28 23:08+0000\n" +"PO-Revision-Date: 2022-06-28 23:08+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: sale_order_product_availability_inline +#: model:ir.model,name:sale_order_product_availability_inline.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: sale_order_product_availability_inline +#: model:ir.model,name:sale_order_product_availability_inline.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línia de comandes de vendes" + +#~ msgid "Product" +#~ msgstr "Producte" diff --git a/sale_order_product_availability_inline/i18n/es.po b/sale_order_product_availability_inline/i18n/es.po new file mode 100644 index 00000000000..8d4dabf2510 --- /dev/null +++ b/sale_order_product_availability_inline/i18n/es.po @@ -0,0 +1,31 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_product_availability_inline +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-06-28 23:08+0000\n" +"PO-Revision-Date: 2023-07-25 12:10+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: \n" +"Language: es\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" +"X-Generator: Weblate 4.17\n" + +#. module: sale_order_product_availability_inline +#: model:ir.model,name:sale_order_product_availability_inline.model_product_product +msgid "Product Variant" +msgstr "Variante de Producto" + +#. module: sale_order_product_availability_inline +#: model:ir.model,name:sale_order_product_availability_inline.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línea Pedido de Venta" + +#~ msgid "Product" +#~ msgstr "Producto" diff --git a/sale_order_product_availability_inline/i18n/it.po b/sale_order_product_availability_inline/i18n/it.po new file mode 100644 index 00000000000..3c73f1b4a9a --- /dev/null +++ b/sale_order_product_availability_inline/i18n/it.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_product_availability_inline +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-12-07 18:33+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\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" +"X-Generator: Weblate 4.17\n" + +#. module: sale_order_product_availability_inline +#: model:ir.model,name:sale_order_product_availability_inline.model_product_product +msgid "Product Variant" +msgstr "Variante prodotto" + +#. module: sale_order_product_availability_inline +#: model:ir.model,name:sale_order_product_availability_inline.model_sale_order_line +msgid "Sales Order Line" +msgstr "Riga ordine di vendita" diff --git a/sale_order_product_availability_inline/i18n/sale_order_product_availability_inline.pot b/sale_order_product_availability_inline/i18n/sale_order_product_availability_inline.pot new file mode 100644 index 00000000000..ba7d5f088f7 --- /dev/null +++ b/sale_order_product_availability_inline/i18n/sale_order_product_availability_inline.pot @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_product_availability_inline +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: sale_order_product_availability_inline +#: model:ir.model,name:sale_order_product_availability_inline.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: sale_order_product_availability_inline +#: model:ir.model,name:sale_order_product_availability_inline.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_product_availability_inline/models/__init__.py b/sale_order_product_availability_inline/models/__init__.py new file mode 100644 index 00000000000..1af2bdae1ab --- /dev/null +++ b/sale_order_product_availability_inline/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from . import product_product +from . import sale diff --git a/sale_order_product_availability_inline/models/product_product.py b/sale_order_product_availability_inline/models/product_product.py new file mode 100644 index 00000000000..9e3ce421928 --- /dev/null +++ b/sale_order_product_availability_inline/models/product_product.py @@ -0,0 +1,26 @@ +# Copyright 2020 Tecnativa - Ernesto Tejeda +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import models + + +class ProductProduct(models.Model): + _inherit = "product.product" + + def _compute_display_name(self): + res = super()._compute_display_name() + if self.env.context.get("so_product_stock_inline"): + self = self.with_context(warehouse=self.env.context.get("warehouse")) + availability = {r.id: [r.free_qty, r.uom_id.display_name] for r in self} + precision = self.env["decimal.precision"].precision_get( + "Product Unit of Measure" + ) + for record in self: + name = "{} ({:.{}f} {})".format( + record.display_name, + availability[record.id][0], + precision, + availability[record.id][1], + ) + record.display_name = name + return res diff --git a/sale_order_product_availability_inline/models/sale.py b/sale_order_product_availability_inline/models/sale.py new file mode 100644 index 00000000000..f12c455efae --- /dev/null +++ b/sale_order_product_availability_inline/models/sale.py @@ -0,0 +1,14 @@ +# Copyright 2020 Tecnativa - Ernesto Tejeda +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import api, models + + +class SaleOrderLine(models.Model): + _inherit = "sale.order.line" + + @api.depends("product_id") + def _compute_name(self): + if self.env.context.get("so_product_stock_inline"): + self = self.with_context(so_product_stock_inline=False) + return super()._compute_name() diff --git a/sale_order_product_availability_inline/pyproject.toml b/sale_order_product_availability_inline/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/sale_order_product_availability_inline/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/sale_order_product_availability_inline/readme/CONTRIBUTORS.md b/sale_order_product_availability_inline/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..d2365308f98 --- /dev/null +++ b/sale_order_product_availability_inline/readme/CONTRIBUTORS.md @@ -0,0 +1,9 @@ +- [Tecnativa](https://www.tecnativa.com): + - Ernesto Tejeda + - Pedro M. Baeza + - César A. Sánchez + - Luis D. Lafaurie +- [Pesol](https://www.pesol.es): + - Jonathan Oscategui Taza \<\> +- [Sodexis](https://www.sodexis.com): + - SodexisTeam \<\> diff --git a/sale_order_product_availability_inline/readme/DESCRIPTION.md b/sale_order_product_availability_inline/readme/DESCRIPTION.md new file mode 100644 index 00000000000..381f5d797b6 --- /dev/null +++ b/sale_order_product_availability_inline/readme/DESCRIPTION.md @@ -0,0 +1,4 @@ +This module extends the functionality of 'Sales and Warehouse +Management' to show you the stock availability (Free To Use Quantity) of +each product as part of its name in the product drop-down widget on +sales order lines. diff --git a/sale_order_product_availability_inline/readme/USAGE.md b/sale_order_product_availability_inline/readme/USAGE.md new file mode 100644 index 00000000000..6e7fae3deca --- /dev/null +++ b/sale_order_product_availability_inline/readme/USAGE.md @@ -0,0 +1,8 @@ +To use this module, you need to: + +1. Go to *Sales \> Orders \> Orders* and choose an existing sales order + or create a new one. +2. Click on 'Add a product' under 'Order Lines' tab, then click on + 'Product' field to deploy products list. +3. You will see stock availability (Free To Use Quantity) of each + product as part of their name. diff --git a/sale_order_product_availability_inline/static/description/icon.png b/sale_order_product_availability_inline/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/sale_order_product_availability_inline/static/description/icon.png differ diff --git a/sale_order_product_availability_inline/static/description/index.html b/sale_order_product_availability_inline/static/description/index.html new file mode 100644 index 00000000000..76760b451f6 --- /dev/null +++ b/sale_order_product_availability_inline/static/description/index.html @@ -0,0 +1,455 @@ + + + + + +Sale Order Product Availability Inline + + + +
+

Sale Order Product Availability Inline

+ + +

Mature License: AGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runboat

+

This module extends the functionality of ‘Sales and Warehouse +Management’ to show you the stock availability (Free To Use Quantity) of +each product as part of its name in the product drop-down widget on +sales order lines.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to Sales > Orders > Orders and choose an existing sales order or +create a new one.
  2. +
  3. Click on ‘Add a product’ under ‘Order Lines’ tab, then click on +‘Product’ field to deploy products list.
  4. +
  5. You will see stock availability (Free To Use Quantity) of each +product as part of their name.
  6. +
+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainer:

+

ernestotejeda

+

This module is part of the OCA/sale-workflow project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/sale_order_product_availability_inline/tests/__init__.py b/sale_order_product_availability_inline/tests/__init__.py new file mode 100644 index 00000000000..bfd825f4b6c --- /dev/null +++ b/sale_order_product_availability_inline/tests/__init__.py @@ -0,0 +1,2 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from . import test_sale_order_product_availability_inline diff --git a/sale_order_product_availability_inline/tests/test_sale_order_product_availability_inline.py b/sale_order_product_availability_inline/tests/test_sale_order_product_availability_inline.py new file mode 100644 index 00000000000..1cdb8a814d1 --- /dev/null +++ b/sale_order_product_availability_inline/tests/test_sale_order_product_availability_inline.py @@ -0,0 +1,60 @@ +# Copyright 2018 Tecnativa - Ernesto Tejeda +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.tests import Form, TransactionCase + + +class TestSaleOrderProductAvailabilityInline(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.obj_product = cls.env["product.product"] + cls.obj_partner = cls.env["res.partner"] + cls.obj_quant = cls.env["stock.quant"] + cls.partner = cls.obj_partner.create({"name": "Partner test - sopai"}) + cls.product = cls.obj_product.create( + { + "name": "Test Product - sopai", + "type": "product", + "default_code": "PRODSOPAI", + } + ) + cls.warehouse1 = cls.env["stock.warehouse"].create( + {"name": "Warehouse test - sopai", "code": "AI1"} + ) + cls.warehouse2 = cls.env["stock.warehouse"].create( + {"name": "Warehouse test - sopai2", "code": "AI2"} + ) + cls.obj_quant.create( + { + "location_id": cls.warehouse1.lot_stock_id.id, + "product_id": cls.product.id, + "inventory_quantity": 10, + } + ).action_apply_inventory() + + cls.obj_quant.create( + { + "location_id": cls.warehouse2.lot_stock_id.id, + "product_id": cls.product.id, + "inventory_quantity": 20, + } + ).action_apply_inventory() + + def test_sale_order_product_rec_name(self): + self.assertEqual( + self.product.with_context(warehouse=self.warehouse1.id).free_qty, + 10.0, + ) + self.env.ref("product.decimal_product_uom").write({"digits": 3}) + sale_order_form = Form( + self.env["sale.order"].with_context( + warehouse=self.warehouse1.id, so_product_stock_inline=True + ) + ) + with sale_order_form.order_line.new() as line_form: + line_form.product_id = self.product + self.assertTrue( + line_form.product_id.display_name.endswith("(10.000 Units)") + ) + self.assertFalse(line_form.name.endswith("(10.000 Units)")) diff --git a/sale_order_product_availability_inline/views/sale_views.xml b/sale_order_product_availability_inline/views/sale_views.xml new file mode 100644 index 00000000000..58c63c067bd --- /dev/null +++ b/sale_order_product_availability_inline/views/sale_views.xml @@ -0,0 +1,29 @@ + + + + + sale.order + + + + + {"so_product_stock_inline": True, + "warehouse": parent.warehouse_id} + + + + + {"so_product_stock_inline": True, + "warehouse": parent.warehouse_id} + + + + + diff --git a/sale_readonly_security/README.rst b/sale_readonly_security/README.rst new file mode 100644 index 00000000000..a531125a6c5 --- /dev/null +++ b/sale_readonly_security/README.rst @@ -0,0 +1,102 @@ +====================== +Sale Readonly Security +====================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:3b0c03b9f868d10ec78781d7c5cf597114564a9c6ac86a49ad66e8c6477cb89c + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fsale--workflow-lightgray.png?logo=github + :target: https://github.com/OCA/sale-workflow/tree/17.0/sale_readonly_security + :alt: OCA/sale-workflow +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_readonly_security + :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/sale-workflow&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module creates a specific permission to allow modification of sale +orders. + +**Table of contents** + +.. contents:: + :local: + +Use Cases / Context +=================== + +Example use case: user without specific permission cannot modify sale +orders. + +Usage +===== + +1. Create or edit a user and uncheck the 'Sale orders edition' + permission. +2. Go to any sale order. +3. None can be created, modified or deleted. + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Tecnativa + +Contributors +------------ + +- `Tecnativa `__: + + - Víctor Martínez + - Pedro M. Baeza + +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. + +.. |maintainer-victoralmau| image:: https://github.com/victoralmau.png?size=40px + :target: https://github.com/victoralmau + :alt: victoralmau + +Current `maintainer `__: + +|maintainer-victoralmau| + +This module is part of the `OCA/sale-workflow `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_readonly_security/__init__.py b/sale_readonly_security/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/sale_readonly_security/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/sale_readonly_security/__manifest__.py b/sale_readonly_security/__manifest__.py new file mode 100644 index 00000000000..0cb051ff39b --- /dev/null +++ b/sale_readonly_security/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2024 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "Sale Readonly Security", + "author": "Tecnativa, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/sale-workflow", + "version": "17.0.1.0.0", + "depends": ["sale"], + "license": "AGPL-3", + "category": "Sales Management", + "data": [ + "security/sale_readonly_security_security.xml", + ], + "installable": True, + "maintainers": ["victoralmau"], +} diff --git a/sale_readonly_security/i18n/es.po b/sale_readonly_security/i18n/es.po new file mode 100644 index 00000000000..f3a33562ad3 --- /dev/null +++ b/sale_readonly_security/i18n/es.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_readonly_security +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-06-12 14:45+0000\n" +"PO-Revision-Date: 2024-06-12 16:46+0200\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 3.0.1\n" + +#. module: sale_readonly_security +#: model:res.groups,name:sale_readonly_security.group_sale_readonly_security_admin +msgid "Sale orders edition" +msgstr "Edición de pedidos de venta" + +#. module: sale_readonly_security +#: model:ir.model,name:sale_readonly_security.model_sale_order +msgid "Sales Order" +msgstr "Pedido de venta" + +#. module: sale_readonly_security +#: code:addons/sale_readonly_security/models/sale_order.py:0 +#, python-format +msgid "" +"Sorry, you are not allowed to create/edit sale orders. Please contact your " +"administrator for further information." +msgstr "" +"Lo sentimos, no tiene permiso para crear/editar pedidos de venta. Para más " +"información, póngase en contacto con su administrador." diff --git a/sale_readonly_security/i18n/it.po b/sale_readonly_security/i18n/it.po new file mode 100644 index 00000000000..5fcc5cccef0 --- /dev/null +++ b/sale_readonly_security/i18n/it.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_readonly_security +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2025-02-06 23:06+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\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" +"X-Generator: Weblate 5.6.2\n" + +#. module: sale_readonly_security +#: model:res.groups,name:sale_readonly_security.group_sale_readonly_security_admin +msgid "Sale orders edition" +msgstr "Versione ordini di vendita" + +#. module: sale_readonly_security +#: model:ir.model,name:sale_readonly_security.model_sale_order +msgid "Sales Order" +msgstr "Ordini vendita" + +#. module: sale_readonly_security +#. odoo-python +#: code:addons/sale_readonly_security/models/sale_order.py:0 +#, python-format +msgid "" +"Sorry, you are not allowed to create/edit sale orders. Please contact your " +"administrator for further information." +msgstr "" +"Non si è abilitati a creare/modificare gli ordini di vendita. Contattare " +"l'amministratore per ulteriori informazioni." diff --git a/sale_readonly_security/i18n/sale_readonly_security.pot b/sale_readonly_security/i18n/sale_readonly_security.pot new file mode 100644 index 00000000000..e597371d918 --- /dev/null +++ b/sale_readonly_security/i18n/sale_readonly_security.pot @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_readonly_security +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: sale_readonly_security +#: model:res.groups,name:sale_readonly_security.group_sale_readonly_security_admin +msgid "Sale orders edition" +msgstr "" + +#. module: sale_readonly_security +#: model:ir.model,name:sale_readonly_security.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_readonly_security +#. odoo-python +#: code:addons/sale_readonly_security/models/sale_order.py:0 +#, python-format +msgid "" +"Sorry, you are not allowed to create/edit sale orders. Please contact your " +"administrator for further information." +msgstr "" diff --git a/sale_readonly_security/models/__init__.py b/sale_readonly_security/models/__init__.py new file mode 100644 index 00000000000..d1d09e0213d --- /dev/null +++ b/sale_readonly_security/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import sale_order diff --git a/sale_readonly_security/models/sale_order.py b/sale_readonly_security/models/sale_order.py new file mode 100644 index 00000000000..e2f6bb4ab7b --- /dev/null +++ b/sale_readonly_security/models/sale_order.py @@ -0,0 +1,61 @@ +# Copyright 2024 Tecnativa - Víctor Martínez +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from lxml import etree + +from odoo import _, api, models +from odoo.exceptions import AccessError +from odoo.tools import config + + +class SaleOrder(models.Model): + _inherit = "sale.order" + + @api.model + def get_view(self, view_id=None, view_type="form", **options): + result = super().get_view(view_id=view_id, view_type=view_type, **options) + group = "sale_readonly_security.group_sale_readonly_security_admin" + if view_type == "form" and not self.env.user.has_group(group): + doc = etree.XML(result["arch"]) + for node in doc.xpath("//header"): + node.set("invisible", "1") + result["arch"] = etree.tostring(doc, encoding="unicode") + return result + + @api.model + def check_access_rights(self, operation, raise_exception=True): + """Simulate that you do not have ACLs so that the create, edit and delete + buttons are not displayed. + """ + user = self.env.user + group = "sale_readonly_security.group_sale_readonly_security_admin" + test_condition = not config["test_enable"] or ( + config["test_enable"] + and self.env.context.get("test_sale_readonly_security") + ) + if ( + test_condition + and operation != "read" + and not self.env.su + and not user.has_group(group) + ): + if raise_exception: + raise AccessError( + _( + "Sorry, you are not allowed to create/edit sale orders. " + "Please contact your administrator for further information." + ) + ) + return False + return super().check_access_rights( + operation=operation, raise_exception=raise_exception + ) + + def _create_invoices(self, grouped=False, final=False, date=None): + """Check if the user can do it, the method does not do a write() in sale.order, + the computes set the corresponding values with compute methods. + Apply the following logic: If user cannot modify a sale.order, cannot create + an invoice. + """ + self.env["sale.order"].check_access_rights("write") + return super()._create_invoices(grouped=grouped, final=final, date=date) diff --git a/sale_readonly_security/pyproject.toml b/sale_readonly_security/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/sale_readonly_security/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/sale_readonly_security/readme/CONTEXT.md b/sale_readonly_security/readme/CONTEXT.md new file mode 100644 index 00000000000..7ff52b794f6 --- /dev/null +++ b/sale_readonly_security/readme/CONTEXT.md @@ -0,0 +1,2 @@ +Example use case: user without specific permission cannot modify sale +orders. diff --git a/sale_readonly_security/readme/CONTRIBUTORS.md b/sale_readonly_security/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..5fee3904270 --- /dev/null +++ b/sale_readonly_security/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- [Tecnativa](https://www.tecnativa.com): + - Víctor Martínez + - Pedro M. Baeza diff --git a/sale_readonly_security/readme/DESCRIPTION.md b/sale_readonly_security/readme/DESCRIPTION.md new file mode 100644 index 00000000000..711df2cf8f7 --- /dev/null +++ b/sale_readonly_security/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module creates a specific permission to allow modification of sale +orders. diff --git a/sale_readonly_security/readme/USAGE.md b/sale_readonly_security/readme/USAGE.md new file mode 100644 index 00000000000..3ba1acc7c51 --- /dev/null +++ b/sale_readonly_security/readme/USAGE.md @@ -0,0 +1,4 @@ +1. Create or edit a user and uncheck the 'Sale orders edition' + permission. +2. Go to any sale order. +3. None can be created, modified or deleted. diff --git a/sale_readonly_security/security/sale_readonly_security_security.xml b/sale_readonly_security/security/sale_readonly_security_security.xml new file mode 100644 index 00000000000..e1c63d37386 --- /dev/null +++ b/sale_readonly_security/security/sale_readonly_security_security.xml @@ -0,0 +1,8 @@ + + + + Sale orders edition + + + + diff --git a/sale_readonly_security/static/description/icon.png b/sale_readonly_security/static/description/icon.png new file mode 100755 index 00000000000..3a0328b516c Binary files /dev/null and b/sale_readonly_security/static/description/icon.png differ diff --git a/sale_readonly_security/static/description/index.html b/sale_readonly_security/static/description/index.html new file mode 100644 index 00000000000..8b78669d130 --- /dev/null +++ b/sale_readonly_security/static/description/index.html @@ -0,0 +1,446 @@ + + + + + +Sale Readonly Security + + + +
+

Sale Readonly Security

+ + +

Beta License: AGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runboat

+

This module creates a specific permission to allow modification of sale +orders.

+

Table of contents

+ +
+

Use Cases / Context

+

Example use case: user without specific permission cannot modify sale +orders.

+
+
+

Usage

+
    +
  1. Create or edit a user and uncheck the ‘Sale orders edition’ +permission.
  2. +
  3. Go to any sale order.
  4. +
  5. None can be created, modified or deleted.
  6. +
+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+
    +
  • Tecnativa:
      +
    • Víctor Martínez
    • +
    • Pedro M. Baeza
    • +
    +
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainer:

+

victoralmau

+

This module is part of the OCA/sale-workflow project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/sale_readonly_security/tests/__init__.py b/sale_readonly_security/tests/__init__.py new file mode 100644 index 00000000000..6f26b41a963 --- /dev/null +++ b/sale_readonly_security/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_sale_readonly_security diff --git a/sale_readonly_security/tests/test_sale_readonly_security.py b/sale_readonly_security/tests/test_sale_readonly_security.py new file mode 100644 index 00000000000..9850086f3b7 --- /dev/null +++ b/sale_readonly_security/tests/test_sale_readonly_security.py @@ -0,0 +1,74 @@ +# Copyright 2024-2025 Tecnativa - Víctor Martínez +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from lxml import etree + +from odoo.exceptions import AccessError +from odoo.tests import Form, new_test_user +from odoo.tests.common import users +from odoo.tools import mute_logger + +from odoo.addons.base.tests.common import BaseCommon + + +class TestSaleReadonlySecurity(BaseCommon): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.env = cls.env( + context=dict(cls.env.context, test_sale_readonly_security=True) + ) + cls.user_admin = new_test_user( + cls.env, + login="test_user_admin", + groups="sales_team.group_sale_manager,%s" # noqa:UP031 + % ("sale_readonly_security.group_sale_readonly_security_admin",), + ) + cls.user_readonly = new_test_user( + cls.env, login="test_user_readonly", groups="sales_team.group_sale_manager" + ) + cls.partner = cls.env["res.partner"].create({"name": "Test partner"}) + cls.product = cls.env["product.product"].create( + {"name": "Test product", "type": "consu", "invoice_policy": "order"} + ) + order_form = Form(cls.env["sale.order"]) + order_form.partner_id = cls.partner + with order_form.order_line.new() as line_form: + line_form.product_id = cls.product + cls.order = order_form.save() + + @users("test_user_admin") + @mute_logger("odoo.models.unlink") + def test_sale_order_admin(self): + """Read, write, unlink and create allowed.""" + orders = self.env["sale.order"].search([]) + self.assertIn(self.order, orders) + self.order.with_user(self.env.user).write({"origin": "test"}) + self.order.with_user(self.env.user).unlink() + new_order = self.env["sale.order"].create({"partner_id": self.partner.id}) + self.assertTrue(new_order.exists()) + view = self.env["sale.order"].get_view() + doc = etree.XML(view["arch"]) + self.assertNotIn("invisible", doc.xpath("//header")[0].attrib) + + @users("test_user_readonly") + def test_sale_order_readonly(self): + """Read allowed. Write, unlink and create not allowed.""" + orders = self.env["sale.order"].search([]) + self.assertIn(self.order, orders) + with self.assertRaises(AccessError): + self.order.with_user(self.env.user).write({"origin": "test"}) + with self.assertRaises(AccessError): + self.order.with_user(self.env.user).unlink() + with self.assertRaises(AccessError): + self.env["sale.order"].create({"partner_id": self.partner.id}) + view = self.env["sale.order"].get_view() + doc = etree.XML(view["arch"]) + self.assertTrue(doc.xpath("//header")[0].attrib["invisible"]) + + def test_sale_order_create_invoice(self): + self.order.action_confirm() + self.order.order_line.qty_delivered = 1 + with self.assertRaises(AccessError): + self.order.with_user(self.user_readonly)._create_invoices() + self.order.with_user(self.user_admin)._create_invoices() diff --git a/sales_team_security_crm/i18n/it.po b/sales_team_security_crm/i18n/it.po new file mode 100644 index 00000000000..8af45f7b878 --- /dev/null +++ b/sales_team_security_crm/i18n/it.po @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\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" diff --git a/sales_team_security_sale/i18n/it.po b/sales_team_security_sale/i18n/it.po new file mode 100644 index 00000000000..8af45f7b878 --- /dev/null +++ b/sales_team_security_sale/i18n/it.po @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\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" diff --git a/setup/_metapackage/pyproject.toml b/setup/_metapackage/pyproject.toml index 58f0e8d6de5..db9da1843e0 100644 --- a/setup/_metapackage/pyproject.toml +++ b/setup/_metapackage/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "odoo-addons-oca-sale-workflow" -version = "17.0.20250128.1" +version = "17.0.20250206.1" dependencies = [ "odoo-addon-partner_sale_pivot>=17.0dev,<17.1dev", "odoo-addon-portal_sale_personal_data_only>=17.0dev,<17.1dev", @@ -35,6 +35,7 @@ dependencies = [ "odoo-addon-sale_order_lot_selection>=17.0dev,<17.1dev", "odoo-addon-sale_order_price_recalculation>=17.0dev,<17.1dev", "odoo-addon-sale_order_priority>=17.0dev,<17.1dev", + "odoo-addon-sale_order_product_availability_inline>=17.0dev,<17.1dev", "odoo-addon-sale_order_product_recommendation>=17.0dev,<17.1dev", "odoo-addon-sale_order_qty_change_no_recompute>=17.0dev,<17.1dev", "odoo-addon-sale_order_revision>=17.0dev,<17.1dev", @@ -47,6 +48,7 @@ dependencies = [ "odoo-addon-sale_product_multi_add>=17.0dev,<17.1dev", "odoo-addon-sale_product_set>=17.0dev,<17.1dev", "odoo-addon-sale_quotation_number>=17.0dev,<17.1dev", + "odoo-addon-sale_readonly_security>=17.0dev,<17.1dev", "odoo-addon-sale_shipping_info_helper>=17.0dev,<17.1dev", "odoo-addon-sale_sourced_by_line>=17.0dev,<17.1dev", "odoo-addon-sale_start_end_dates>=17.0dev,<17.1dev",