diff --git a/purchase_invoice_subtotal_taxes/README.md b/purchase_invoice_subtotal_taxes/README.md deleted file mode 100644 index da35c3a..0000000 --- a/purchase_invoice_subtotal_taxes/README.md +++ /dev/null @@ -1,66 +0,0 @@ -# Purchase Invoice Subtotal with Taxes - -## Description - -This module adds two optional columns to purchase orders and invoices to display the subtotal both with and without taxes, regardless of the tax configuration in Odoo. - -### Problem - -By default, Odoo only shows one subtotal column in purchase orders and invoices based on the tax configuration: -- If taxes are configured as "included in price", it shows the total with taxes -- If taxes are configured as "excluded from price", it shows the total without taxes - -However, in some cases, users need to see **both** values at the same time for comparison or reporting purposes. - -### Solution - -This module adds two new optional columns: -- **Subtotal (No Tax)**: Always shows the line subtotal without taxes included -- **Subtotal (Tax Incl.)**: Always shows the line subtotal with taxes included - -These columns are available in: -- Purchase order lines -- Invoice lines (customer and vendor invoices) - -Both columns are hidden by default (optional="hide") and can be shown by users as needed using the column visibility controls. - -## Installation - -1. Install the module from the Apps menu -2. No additional configuration is required - -## Usage - -After installation: -1. Go to a purchase order or invoice -2. In the lines view, click on the column selector (≡ icon) -3. Enable "Subtotal (No Tax)" and/or "Subtotal (Tax Incl.)" columns -4. Both values will be displayed regardless of your tax configuration - -## Technical Details - -The module creates two computed fields on: -- `purchase.order.line`: `price_subtotal_no_tax` and `price_subtotal_with_tax` -- `account.move.line`: `price_subtotal_no_tax` and `price_subtotal_with_tax` - -These fields are based on the existing `price_subtotal` (without tax) and `price_total` (with tax) fields, ensuring consistency with Odoo's core calculations. - -## Bug Tracker - -Bugs are tracked on [GitHub Issues](https://github.com/OCA/account-invoicing/issues). - -## Credits - -### Contributors - -* Criptomart - -### Maintainers - -This module is maintained by the OCA. - -## Compatibility - -- Odoo 16.0 -- purchase -- account diff --git a/purchase_invoice_subtotal_taxes/__init__.py b/purchase_invoice_subtotal_taxes/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/purchase_invoice_subtotal_taxes/__manifest__.py b/purchase_invoice_subtotal_taxes/__manifest__.py deleted file mode 100644 index 1ef984a..0000000 --- a/purchase_invoice_subtotal_taxes/__manifest__.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright 2025 Criptomart -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -{ - "name": "Purchase Invoice Subtotal with Taxes", - "version": "16.0.1.0.0", - "summary": "Show both subtotal with and without taxes as optional columns", - "license": "AGPL-3", - "author": "Criptomart, Odoo Community Association (OCA)", - "website": "https://github.com/OCA/account-invoicing", - "depends": ["purchase", "account"], - "data": [ - "views/purchase_order_view.xml", - "views/account_move_view.xml", - ], - "installable": True, -} diff --git a/purchase_invoice_subtotal_taxes/i18n/es.po b/purchase_invoice_subtotal_taxes/i18n/es.po deleted file mode 100644 index 124f7a7..0000000 --- a/purchase_invoice_subtotal_taxes/i18n/es.po +++ /dev/null @@ -1,28 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * purchase_invoice_subtotal_taxes -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 16.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-12-04 16:53+0000\n" -"PO-Revision-Date: 2025-12-04 16:53+0000\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: purchase_invoice_subtotal_taxes -#: model_terms:ir.ui.view,arch_db:purchase_invoice_subtotal_taxes.purchase_order_form_subtotal_taxes -#: model_terms:ir.ui.view,arch_db:purchase_invoice_subtotal_taxes.view_move_form_subtotal_taxes -msgid "Subtotal (No Tax)" -msgstr "Subtotal (Sin Imp.)" - -#. module: purchase_invoice_subtotal_taxes -#: model_terms:ir.ui.view,arch_db:purchase_invoice_subtotal_taxes.purchase_order_form_subtotal_taxes -#: model_terms:ir.ui.view,arch_db:purchase_invoice_subtotal_taxes.view_move_form_subtotal_taxes -msgid "Subtotal (Tax Incl.)" -msgstr "Subtotal (Con Imp.)" diff --git a/purchase_invoice_subtotal_taxes/i18n/purchase_invoice_subtotal_taxes.pot b/purchase_invoice_subtotal_taxes/i18n/purchase_invoice_subtotal_taxes.pot deleted file mode 100644 index b7c40ba..0000000 --- a/purchase_invoice_subtotal_taxes/i18n/purchase_invoice_subtotal_taxes.pot +++ /dev/null @@ -1,28 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * purchase_invoice_subtotal_taxes -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 16.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-12-04 16:53+0000\n" -"PO-Revision-Date: 2025-12-04 16:53+0000\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: purchase_invoice_subtotal_taxes -#: model_terms:ir.ui.view,arch_db:purchase_invoice_subtotal_taxes.purchase_order_form_subtotal_taxes -#: model_terms:ir.ui.view,arch_db:purchase_invoice_subtotal_taxes.view_move_form_subtotal_taxes -msgid "Subtotal (No Tax)" -msgstr "" - -#. module: purchase_invoice_subtotal_taxes -#: model_terms:ir.ui.view,arch_db:purchase_invoice_subtotal_taxes.purchase_order_form_subtotal_taxes -#: model_terms:ir.ui.view,arch_db:purchase_invoice_subtotal_taxes.view_move_form_subtotal_taxes -msgid "Subtotal (Tax Incl.)" -msgstr "" diff --git a/purchase_invoice_subtotal_taxes/views/account_move_view.xml b/purchase_invoice_subtotal_taxes/views/account_move_view.xml deleted file mode 100644 index cfc6f74..0000000 --- a/purchase_invoice_subtotal_taxes/views/account_move_view.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - account.move.form.subtotal.taxes - account.move - - - - - - show - Subtotal (No Tax) - - - - - show - Subtotal (Tax Incl.) - - - - - diff --git a/purchase_invoice_subtotal_taxes/views/purchase_order_view.xml b/purchase_invoice_subtotal_taxes/views/purchase_order_view.xml deleted file mode 100644 index 18815b7..0000000 --- a/purchase_invoice_subtotal_taxes/views/purchase_order_view.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - purchase.order.form.subtotal.taxes - purchase.order - - - - - 0 - hide - Subtotal (Tax Incl.) - - - - show - Subtotal (No Tax) - - - - - diff --git a/stock_inventory_product_exhausted/models/stock_inventory.py b/stock_inventory_product_exhausted/models/stock_inventory.py index cad759e..d384c88 100644 --- a/stock_inventory_product_exhausted/models/stock_inventory.py +++ b/stock_inventory_product_exhausted/models/stock_inventory.py @@ -110,7 +110,4 @@ class StockQuant(models.Model): This may need review to ensure it doesn't conflict with standard Odoo behavior. """ - if self.product_tmpl_id.active: - _logger.debug("Preventing automatic unlinking of zero quants") - else: - super()._unlink_zero_quants() + _logger.debug("Preventing automatic unlinking of zero quants") diff --git a/stock_valuation_layer_category_groupby/README.md b/stock_valuation_layer_category_groupby/README.md deleted file mode 100644 index 786397b..0000000 --- a/stock_valuation_layer_category_groupby/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# Stock Valuation Layer Category Groupby - -## Description - -This module allows grouping by product category in the stock valuation layer reports. - -### Problem - -By default, the `categ_id` field in `stock.valuation.layer` is a related field without storage (`store=False`). This means it cannot be used for grouping in reports and pivot views, even though it can be used for filtering and searching. - -### Solution - -This module makes the `categ_id` field stored (`store=True`) and indexed, which enables: -- Grouping by product category in list views -- Grouping by product category in pivot views -- Grouping by product category in graph views -- Better performance when filtering by category - -## Installation - -1. Install the module from the Apps menu -2. The field will be automatically populated for existing records - -## Usage - -After installation: -1. Go to Inventory > Reporting > Inventory Valuation -2. Switch to Pivot or Graph view -3. Click on "Measures" or group options -4. You will now see "Product Category" available for grouping - -## Technical Details - -The module extends `stock.valuation.layer` model and modifies the `categ_id` field to: -- `store=True`: Store the value in the database -- `index=True`: Add database index for better performance - -The field remains a related field, so it will automatically update when the product category changes. - -## Bug Tracker - -Bugs are tracked on [GitHub Issues](https://github.com/OCA/stock-logistics-warehouse/issues). - -## Credits - -### Contributors - -* Criptomart - -### Maintainers - -This module is maintained by the OCA. - -## Compatibility - -- Odoo 16.0 -- stock_account diff --git a/stock_valuation_layer_category_groupby/__init__.py b/stock_valuation_layer_category_groupby/__init__.py deleted file mode 100644 index 0650744..0000000 --- a/stock_valuation_layer_category_groupby/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import models diff --git a/stock_valuation_layer_category_groupby/__manifest__.py b/stock_valuation_layer_category_groupby/__manifest__.py deleted file mode 100644 index 441c065..0000000 --- a/stock_valuation_layer_category_groupby/__manifest__.py +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright 2025 Criptomart -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -{ - "name": "Stock Valuation Layer Category Groupby", - "version": "16.0.1.0.0", - "summary": "Allow grouping by product category in stock valuation layer reports", - "license": "AGPL-3", - "author": "Criptomart", - "website": "https://github.com/OCA/stock-logistics-warehouse", - "depends": ["stock_account"], - "data": ["views/stock_valuation_layer_views.xml"], - "installable": True, -} diff --git a/stock_valuation_layer_category_groupby/i18n/es.po b/stock_valuation_layer_category_groupby/i18n/es.po deleted file mode 100644 index ed1f2fd..0000000 --- a/stock_valuation_layer_category_groupby/i18n/es.po +++ /dev/null @@ -1,32 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * stock_valuation_layer_category_groupby -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 16.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-12-04 17:24+0000\n" -"PO-Revision-Date: 2025-12-04 17:24+0000\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: stock_valuation_layer_category_groupby -#: model:ir.model.fields,field_description:stock_valuation_layer_category_groupby.field_stock_valuation_layer__categ_id -#: model_terms:ir.ui.view,arch_db:stock_valuation_layer_category_groupby.view_inventory_valuation_search_category -msgid "Product Category" -msgstr "Categoría de producto" - -#. module: stock_valuation_layer_category_groupby -#: model:ir.model.fields,field_description:stock_valuation_layer_category_groupby.field_stock_valuation_layer__smart_search -msgid "Smart Search" -msgstr "Búsqueda inteligente" - -#. module: stock_valuation_layer_category_groupby -#: model:ir.model,name:stock_valuation_layer_category_groupby.model_stock_valuation_layer -msgid "Stock Valuation Layer" -msgstr "Nivel de Valoración de Existencias" diff --git a/stock_valuation_layer_category_groupby/i18n/stock_valuation_layer_category_groupby.pot b/stock_valuation_layer_category_groupby/i18n/stock_valuation_layer_category_groupby.pot deleted file mode 100644 index 3cb8e99..0000000 --- a/stock_valuation_layer_category_groupby/i18n/stock_valuation_layer_category_groupby.pot +++ /dev/null @@ -1,32 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * stock_valuation_layer_category_groupby -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 16.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-12-04 17:24+0000\n" -"PO-Revision-Date: 2025-12-04 17:24+0000\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: stock_valuation_layer_category_groupby -#: model:ir.model.fields,field_description:stock_valuation_layer_category_groupby.field_stock_valuation_layer__categ_id -#: model_terms:ir.ui.view,arch_db:stock_valuation_layer_category_groupby.view_inventory_valuation_search_category -msgid "Product Category" -msgstr "" - -#. module: stock_valuation_layer_category_groupby -#: model:ir.model.fields,field_description:stock_valuation_layer_category_groupby.field_stock_valuation_layer__smart_search -msgid "Smart Search" -msgstr "" - -#. module: stock_valuation_layer_category_groupby -#: model:ir.model,name:stock_valuation_layer_category_groupby.model_stock_valuation_layer -msgid "Stock Valuation Layer" -msgstr "" diff --git a/stock_valuation_layer_category_groupby/models/__init__.py b/stock_valuation_layer_category_groupby/models/__init__.py deleted file mode 100644 index f75b2df..0000000 --- a/stock_valuation_layer_category_groupby/models/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import stock_valuation_layer diff --git a/stock_valuation_layer_category_groupby/models/stock_valuation_layer.py b/stock_valuation_layer_category_groupby/models/stock_valuation_layer.py deleted file mode 100644 index bba7017..0000000 --- a/stock_valuation_layer_category_groupby/models/stock_valuation_layer.py +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright 2025 Criptomart -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import fields, models - - -class StockValuationLayer(models.Model): - _inherit = "stock.valuation.layer" - - # Make categ_id stored to allow grouping in reports - categ_id = fields.Many2one(store=True, index=True) diff --git a/stock_valuation_layer_category_groupby/views/stock_valuation_layer_views.xml b/stock_valuation_layer_category_groupby/views/stock_valuation_layer_views.xml deleted file mode 100644 index c202e4b..0000000 --- a/stock_valuation_layer_category_groupby/views/stock_valuation_layer_views.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - stock.valuation.layer.search.category - stock.valuation.layer - - - - - - - - -