Skip to content

Commit

Permalink
Merge pull request #1347 from OCA/14.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/stock-logistics-warehouse (14.0)
  • Loading branch information
bt-admin authored Feb 15, 2024
2 parents fc2bd3a + dfcbb4d commit 5b8398a
Show file tree
Hide file tree
Showing 24 changed files with 403 additions and 113 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ addon | version | maintainers | summary
[procurement_auto_create_group](procurement_auto_create_group/) | 14.0.1.2.0 | | Allows to configure the system to propose automatically new procurement groups during the procurement run.
[product_quantity_update_force_inventory](product_quantity_update_force_inventory/) | 14.0.1.0.1 | | Product Quantity Update Force Inventory
[product_route_profile](product_route_profile/) | 14.0.1.0.3 | [![Kev-Roche](https://github.com/Kev-Roche.png?size=30px)](https://github.com/Kev-Roche) | Add Route profile concept on product
[sale_stock_on_hand_popup](sale_stock_on_hand_popup/) | 14.0.1.0.1 | | Sale Stock On Hand Popup
[sale_stock_on_hand_popup](sale_stock_on_hand_popup/) | 14.0.2.0.0 | [![aleuffre](https://github.com/aleuffre.png?size=30px)](https://github.com/aleuffre) [![renda-dev](https://github.com/renda-dev.png?size=30px)](https://github.com/renda-dev) [![PicchiSeba](https://github.com/PicchiSeba.png?size=30px)](https://github.com/PicchiSeba) | Sale Stock On Hand Popup
[scrap_location_filter](scrap_location_filter/) | 14.0.1.0.0 | [![opensourceintegrators](https://github.com/opensourceintegrators.png?size=30px)](https://github.com/opensourceintegrators) | Filters scrap location
[scrap_reason_code](scrap_reason_code/) | 14.0.1.1.1 | [![bodedra](https://github.com/bodedra.png?size=30px)](https://github.com/bodedra) | Reason code for scrapping
[stock_archive_constraint](stock_archive_constraint/) | 14.0.1.0.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Stock archive constraint
Expand Down
16 changes: 15 additions & 1 deletion sale_stock_on_hand_popup/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Sale Stock On Hand Popup
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7e7d0b495f5c5c2c119238bc86c9beee329c4ac57c102e536b6fc4dce6988870
!! source digest: sha256:c6ca95cb0e31299d67c80eeb03bd994cbbec40d17d4488f71317f6dab9b67b2b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down Expand Up @@ -88,6 +88,20 @@ 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-aleuffre| image:: https://github.com/aleuffre.png?size=40px
:target: https://github.com/aleuffre
:alt: aleuffre
.. |maintainer-renda-dev| image:: https://github.com/renda-dev.png?size=40px
:target: https://github.com/renda-dev
:alt: renda-dev
.. |maintainer-PicchiSeba| image:: https://github.com/PicchiSeba.png?size=40px
:target: https://github.com/PicchiSeba
:alt: PicchiSeba

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-aleuffre| |maintainer-renda-dev| |maintainer-PicchiSeba|

This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/14.0/sale_stock_on_hand_popup>`_ 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 sale_stock_on_hand_popup/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import models
from . import wizards
14 changes: 11 additions & 3 deletions sale_stock_on_hand_popup/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
{
"name": "Sale Stock On Hand Popup",
"author": "PyTech SRL, Ooops404, Odoo Community Association (OCA)",
"maintainers": ["aleuffre", "renda-dev", "PicchiSeba"],
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Warehouse Management",
"version": "14.0.1.0.1",
"version": "14.0.2.0.0",
"license": "AGPL-3",
"depends": ["sale_stock", "stock_available"],
"data": ["views/sale_order_views.xml"],
"qweb": ["static/src/xml/sale_stock.xml"],
"data": [
"security/ir.model.access.csv",
"security/security.xml",
"views/assets.xml",
"views/res_config_settings_views.xml",
"views/sale_order_views.xml",
"wizards/product_quant_wizard_views.xml",
],
"qweb": ["static/src/xml/stock_on_hand_widget.xml"],
"installable": True,
"application": False,
}
73 changes: 65 additions & 8 deletions sale_stock_on_hand_popup/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,92 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: sale_stock_on_hand_popup
#: model_terms:ir.ui.view,arch_db:sale_stock_on_hand_popup.product_quant_wizard_view_form
msgid "Close"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model,name:sale_stock_on_hand_popup.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__create_uid
msgid "Created by"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__create_date
msgid "Created on"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_product__display_name
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__display_name
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_res_config_settings__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_res_config_settings__group_show_transit_location_stock_wizard
msgid "Display also transit location lines in sale line stock popup."
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:res.groups,name:sale_stock_on_hand_popup.group_show_transit_location_stock_wizard
msgid "Display transit location lines in sale line stock popup"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_product__id
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__id
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_res_config_settings__id
msgid "ID"
msgstr "ID"

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_product____last_update
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard____last_update
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_res_config_settings____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__write_uid
msgid "Last Updated by"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__write_date
msgid "Last Updated on"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model,name:sale_stock_on_hand_popup.model_product_product
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__product_id
msgid "Product"
msgstr "Prodotto"

#. module: sale_stock_on_hand_popup
#: code:addons/sale_stock_on_hand_popup/models/product.py:0
#, python-format
msgid "Stock Lines"
msgstr "Righe giacenza"
#: model:ir.model,name:sale_stock_on_hand_popup.model_product_quant_wizard
msgid "Product Quant Wizard"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model_terms:ir.ui.view,arch_db:sale_stock_on_hand_popup.view_stock_configuration
msgid "Sale Stock on Hand"
msgstr ""

#. module: sale_stock_on_hand_popup
#. openerp-web
#: code:addons/sale_stock_on_hand_popup/static/src/xml/sale_stock.xml:0
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__stock_quant_ids
msgid "Stock Quant"
msgstr ""

#, python-format
#~ msgid "Stock Lines"
#~ msgstr "Righe giacenza"

#, python-format
msgid "View Stock"
msgstr "Vedi giacenza"
#~ msgid "View Stock"
#~ msgstr "Vedi giacenza"
63 changes: 56 additions & 7 deletions sale_stock_on_hand_popup/i18n/sale_stock_on_hand_popup.pot
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,84 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_stock_on_hand_popup
#: model_terms:ir.ui.view,arch_db:sale_stock_on_hand_popup.product_quant_wizard_view_form
msgid "Close"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model,name:sale_stock_on_hand_popup.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__create_uid
msgid "Created by"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__create_date
msgid "Created on"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_product__display_name
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__display_name
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_res_config_settings__display_name
msgid "Display Name"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_res_config_settings__group_show_transit_location_stock_wizard
msgid "Display also transit location lines in sale line stock popup."
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:res.groups,name:sale_stock_on_hand_popup.group_show_transit_location_stock_wizard
msgid "Display transit location lines in sale line stock popup"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_product__id
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__id
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_res_config_settings__id
msgid "ID"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_product____last_update
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard____last_update
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_res_config_settings____last_update
msgid "Last Modified on"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__write_uid
msgid "Last Updated by"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__write_date
msgid "Last Updated on"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model,name:sale_stock_on_hand_popup.model_product_product
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__product_id
msgid "Product"
msgstr ""

#. module: sale_stock_on_hand_popup
#: code:addons/sale_stock_on_hand_popup/models/product.py:0
#, python-format
msgid "Stock Lines"
#: model:ir.model,name:sale_stock_on_hand_popup.model_product_quant_wizard
msgid "Product Quant Wizard"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model_terms:ir.ui.view,arch_db:sale_stock_on_hand_popup.view_stock_configuration
msgid "Sale Stock on Hand"
msgstr ""

#. module: sale_stock_on_hand_popup
#. openerp-web
#: code:addons/sale_stock_on_hand_popup/static/src/xml/sale_stock.xml:0
#, python-format
msgid "View Stock"
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_quant_wizard__stock_quant_ids
msgid "Stock Quant"
msgstr ""
3 changes: 2 additions & 1 deletion sale_stock_on_hand_popup/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import product
from . import product_product
from . import res_config_settings
20 changes: 0 additions & 20 deletions sale_stock_on_hand_popup/models/product.py

This file was deleted.

20 changes: 20 additions & 0 deletions sale_stock_on_hand_popup/models/product_product.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from odoo import models


class Product(models.Model):
_inherit = "product.product"

def action_open_quants_show_products(self):
self.ensure_one()
return {
"name": self.display_name,
"view_type": "form",
"view_mode": "form",
"res_model": "product.quant.wizard",
"type": "ir.actions.act_window",
"target": "new",
"context": {
**self.env.context,
"default_product_id": self.id,
},
}
11 changes: 11 additions & 0 deletions sale_stock_on_hand_popup/models/res_config_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from odoo import fields, models


class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

group_show_transit_location_stock_wizard = fields.Boolean(
"Display also transit location lines in sale line stock popup.",
implied_group="sale_stock_on_hand_popup.group_show_transit_location_stock_wizard",
default=False,
)
2 changes: 2 additions & 0 deletions sale_stock_on_hand_popup/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_product_quant_wizard,access_product_quant_wizard,model_product_quant_wizard,base.group_user,1,1,1,1
9 changes: 9 additions & 0 deletions sale_stock_on_hand_popup/security/security.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="group_show_transit_location_stock_wizard" model="res.groups">
<field
name="name"
>Display transit location lines in sale line stock popup</field>
<field name="category_id" ref="base.module_category_hidden" />
</record>
</odoo>
4 changes: 3 additions & 1 deletion sale_stock_on_hand_popup/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ <h1 class="title">Sale Stock On Hand Popup</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7e7d0b495f5c5c2c119238bc86c9beee329c4ac57c102e536b6fc4dce6988870
!! source digest: sha256:c6ca95cb0e31299d67c80eeb03bd994cbbec40d17d4488f71317f6dab9b67b2b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/14.0/sale_stock_on_hand_popup"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-sale_stock_on_hand_popup"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows user to check from sale order line all inventory lines related to that product.</p>
Expand Down Expand Up @@ -428,6 +428,8 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>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.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/aleuffre"><img alt="aleuffre" src="https://github.com/aleuffre.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/renda-dev"><img alt="renda-dev" src="https://github.com/renda-dev.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/PicchiSeba"><img alt="PicchiSeba" src="https://github.com/PicchiSeba.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/14.0/sale_stock_on_hand_popup">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
Expand Down
29 changes: 0 additions & 29 deletions sale_stock_on_hand_popup/static/src/js/qty_at_date_widget.js

This file was deleted.

Loading

0 comments on commit 5b8398a

Please sign in to comment.