Skip to content

[17.0][MIG] pos_stock_available_online #1385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 34 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
08d4501
[ADD] pos_stock_available_online: Add new module to sync product avai…
GabbasovDinar Jan 19, 2023
950f126
[UPD] Update pos_stock_available_online.pot
Mar 27, 2023
64cfb78
[UPD] README.rst
OCA-git-bot Mar 27, 2023
4cf16fb
Added translation using Weblate (Italian)
mymage Mar 30, 2023
789bcdc
Translated using Weblate (Italian)
mymage Mar 30, 2023
38fbe02
Added translation using Weblate (Spanish)
FLNerea Mar 31, 2023
f8639ff
Translated using Weblate (Spanish)
FLNerea Mar 31, 2023
ed327bf
[IMP] pos_stock_available_online \n\n Added app banner and custom icon
May 10, 2023
7af3a8b
[UPD] README.rst
OCA-git-bot Sep 3, 2023
d2a5474
Update translation files
weblate Oct 9, 2023
ba4e7b1
[FIX] pos_product_quick_info: Fix banner
mike-cetmix Nov 29, 2023
532245b
[FIX] pos_stock_available_online
ivs-cetmix Dec 7, 2023
1b60c3b
[BOT] post-merge updates
OCA-git-bot Dec 8, 2023
392723e
[BOT] post-merge updates
OCA-git-bot Dec 18, 2023
e5bfd42
[FIX] eslint error 'no-shadow' in all modules
legalsylvain Jan 18, 2024
8b6368e
[BOT] post-merge updates
OCA-git-bot Jan 20, 2024
bf1d85d
Translated using Weblate (Spanish)
AdrianaSaiz Mar 11, 2024
9a825b4
Translated using Weblate (Spanish)
danielduqma Oct 24, 2024
6eeb3e4
[16.0][FIX] pos_stock_available_online: stock move updates
danielduqma Oct 1, 2024
02a4202
[UPD] Update pos_stock_available_online.pot
Jan 13, 2025
2fdbd11
[BOT] post-merge updates
OCA-git-bot Jan 13, 2025
3ee4a5b
Update translation files
weblate Jan 13, 2025
8ba0ab8
[FIX] pos_stock_available_online: warehouse to notify
danielduqma Jan 14, 2025
a257e00
[BOT] post-merge updates
OCA-git-bot Jan 15, 2025
95ec342
Translated using Weblate (Italian)
mymage Jan 16, 2025
23f17d8
[FIX] pos_stock_available_online: Two fields (main_warehouse_id, ware…
legalsylvain Feb 21, 2025
699d0b4
[UPD] Update pos_stock_available_online.pot
Feb 21, 2025
5fb0c35
[BOT] post-merge updates
OCA-git-bot Feb 21, 2025
713acb6
Update translation files
weblate Feb 21, 2025
ed863b4
[FIX] pos_stock_available_online: prevent ensure_one() error, if we w…
legalsylvain Feb 21, 2025
f8b5c96
[BOT] post-merge updates
OCA-git-bot Feb 21, 2025
db04aff
Translated using Weblate (Italian)
mymage Feb 21, 2025
e656fdf
[IMP] pos_stock_available_online: pre-commit auto fixes
edescalona May 15, 2025
4224e17
[MIG] pos_stock_available_online: Migration to 17.0
edescalona May 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 116 additions & 0 deletions pos_stock_available_online/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
====================================
Point of Sale Stock Available Online
====================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d544301c362e728a3cab17fa70bc08796bb02c4435dd0edf4ed2df4a4376d1c1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/17.0/pos_stock_available_online
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-17-0/pos-17-0-pos_stock_available_online
: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/pos&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to display product quantities in selected locations
in real time. Quantities are displayed directly on product tiles: |Pos
Quantity|

Once a product quantity is changed it will be simultaneously updated in
all active POS.

This module depends on stock_available module which is available in
https://github.com/OCA/stock-logistics-availability repo.

.. |Pos Quantity| image:: https://raw.githubusercontent.com/OCA/pos/17.0/pos_stock_available_online/static/img/pos_quantity.png

**Table of contents**

.. contents::
:local:

Configuration
=============

In "Point of Sale" configuration "Product Quantity" section activate
"Display Product Quantity" feature: |Pos Config|

By default quantity is displayed for the warehouse that is used in the
POS stock operation type.

You can add additional warehouses to show quantity in by adding them
into "Additional Warehouses" field.

In this case the following information will be displayed on product
tiles:

- Total quantity = quantity in the default warehouse + quantity in the
additional warehouses
- Quantity in the default warehouse
- Quantity in the additional warehouses.

.. |Pos Config| image:: https://raw.githubusercontent.com/OCA/pos/17.0/pos_stock_available_online/static/img/pos_config.png

Known issues / Roadmap
======================

This module requires connection to update quantities and doesn't support
offline mode. Warehouses must belong to the same company as POS. Offline
mode support (probably additional module).

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_stock_available_online%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Cetmix

Contributors
------------

- Cetmix <`https://cetmix.com/\\> <https://cetmix.com/\>>`__
- Dinar Gabbasov

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.

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/17.0/pos_stock_available_online>`_ 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 pos_stock_available_online/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
24 changes: 24 additions & 0 deletions pos_stock_available_online/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Point of Sale Stock Available Online",
"version": "17.0.1.0.0",
"category": "Sales/Point of Sale",
"summary": "Show the available quantity of products in the Point of Sale ",
"depends": [
"point_of_sale",
"stock_available",
"base_automation",
],
"website": "https://github.com/OCA/pos",
"author": "Cetmix, Odoo Community Association (OCA)",
"images": ["static/description/banner.png"],
"installable": True,
"data": ["views/res_config_settings_view.xml"],
"assets": {
"point_of_sale._assets_pos": [
"pos_stock_available_online/static/src/app/**/*.scss",
"pos_stock_available_online/static/src/app/**/*.js",
"pos_stock_available_online/static/src/app/**/*.xml",
],
},
"license": "AGPL-3",
}
126 changes: 126 additions & 0 deletions pos_stock_available_online/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_stock_available_online
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-10-24 11:06+0000\n"
"Last-Translator: Daniel Duque <[email protected]>\n"
"Language-Team: none\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 5.6.2\n"

#. module: pos_stock_available_online
#: model:ir.model.fields,field_description:pos_stock_available_online.field_pos_config__additional_warehouse_ids
#: model:ir.model.fields,field_description:pos_stock_available_online.field_res_config_settings__pos_additional_warehouse_ids
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Additional Warehouses"
msgstr "Almacenes Adicionales"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_res_config_settings
msgid "Config Settings"
msgstr "Ajustes de Configuración"

#. module: pos_stock_available_online
#: model:ir.model.fields,field_description:pos_stock_available_online.field_pos_config__display_product_quantity
#: model:ir.model.fields,field_description:pos_stock_available_online.field_res_config_settings__pos_display_product_quantity
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Display Product Quantity"
msgstr "Mostrar Cantidad de Productos"

#. module: pos_stock_available_online
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Display the quantity of available products in the POS for"
msgstr "Mostrar la cantidad de productos disponibles en el TPV para"

#. module: pos_stock_available_online
#: model:ir.model.fields,help:pos_stock_available_online.field_pos_config__additional_warehouse_ids
#: model:ir.model.fields,help:pos_stock_available_online.field_res_config_settings__pos_additional_warehouse_ids
msgid ""
"For the selected warehouses will be displayed quantity of available products "
"in the POS"
msgstr ""
"Para los almacenes seleccionados se mostrará la cantidad de productos "
"disponibles en el TPV"

#. module: pos_stock_available_online
#: model:ir.model.fields,field_description:pos_stock_available_online.field_pos_config__main_warehouse_id
#: model:ir.model.fields,field_description:pos_stock_available_online.field_res_config_settings__pos_main_warehouse_id
msgid "Main Warehouse"
msgstr ""

#. module: pos_stock_available_online
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Mark quantity red if below or equal this value."
msgstr "Marque la cantidad en rojo si es inferior o igual a este valor."

#. module: pos_stock_available_online
#: model:ir.model.fields,field_description:pos_stock_available_online.field_pos_config__minimum_product_quantity_alert
#: model:ir.model.fields,field_description:pos_stock_available_online.field_res_config_settings__pos_minimum_product_quantity_alert
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Minimum Product Quantity Alert"
msgstr "Alerta de Cantidad Mínima de Producto"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configuración del Punto de Venta"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_pos_session
msgid "Point of Sale Session"
msgstr "Sesiones del Punto de Venta"

#. module: pos_stock_available_online
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Product Quantity"
msgstr "Cantidad de Productos"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_stock_quant
msgid "Quants"
msgstr "Quants"

#. module: pos_stock_available_online
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Show quantity in the following warehouses in additional to"
msgstr "Indicar la cantidad en los siguientes almacenes además de"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_stock_move
msgid "Stock Move"
msgstr ""

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_stock_notifier_pos_mixin
msgid "Stock Notifier POS Mixin"
msgstr ""

#. module: pos_stock_available_online
#. odoo-javascript
#: code:addons/pos_stock_available_online/static/src/xml/Screens/ProductScreen/ProductItem.xml:0
#, python-format
msgid "Total"
msgstr "Total"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_stock_warehouse
msgid "Warehouse"
msgstr "Almacén"

#. module: pos_stock_available_online
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Warehouses must belong to the same company as POS."
msgstr "Los almacenes deben pertenecer a la misma compañía que el TPV."

#. module: pos_stock_available_online
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "warehouse"
msgstr "almacén"
126 changes: 126 additions & 0 deletions pos_stock_available_online/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_stock_available_online
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-02-21 18:06+0000\n"
"Last-Translator: mymage <[email protected]>\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: pos_stock_available_online
#: model:ir.model.fields,field_description:pos_stock_available_online.field_pos_config__additional_warehouse_ids
#: model:ir.model.fields,field_description:pos_stock_available_online.field_res_config_settings__pos_additional_warehouse_ids
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Additional Warehouses"
msgstr "Magazzini aggiuntivi"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_res_config_settings
msgid "Config Settings"
msgstr "Impostazioni configurazione"

#. module: pos_stock_available_online
#: model:ir.model.fields,field_description:pos_stock_available_online.field_pos_config__display_product_quantity
#: model:ir.model.fields,field_description:pos_stock_available_online.field_res_config_settings__pos_display_product_quantity
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Display Product Quantity"
msgstr "Visualizza quantità prdotto"

#. module: pos_stock_available_online
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Display the quantity of available products in the POS for"
msgstr "Visualizza la quantità dei prodotti disponibili nel POS per"

#. module: pos_stock_available_online
#: model:ir.model.fields,help:pos_stock_available_online.field_pos_config__additional_warehouse_ids
#: model:ir.model.fields,help:pos_stock_available_online.field_res_config_settings__pos_additional_warehouse_ids
msgid ""
"For the selected warehouses will be displayed quantity of available products "
"in the POS"
msgstr ""
"Per il magazzino selezionato verrà visualizzata nel POS la quantità "
"disponibile del prodotto"

#. module: pos_stock_available_online
#: model:ir.model.fields,field_description:pos_stock_available_online.field_pos_config__main_warehouse_id
#: model:ir.model.fields,field_description:pos_stock_available_online.field_res_config_settings__pos_main_warehouse_id
msgid "Main Warehouse"
msgstr "Magazzino principale"

#. module: pos_stock_available_online
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Mark quantity red if below or equal this value."
msgstr "Evidenzia in rosso la quantità se inferiore o uguale a questo valore."

#. module: pos_stock_available_online
#: model:ir.model.fields,field_description:pos_stock_available_online.field_pos_config__minimum_product_quantity_alert
#: model:ir.model.fields,field_description:pos_stock_available_online.field_res_config_settings__pos_minimum_product_quantity_alert
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Minimum Product Quantity Alert"
msgstr "Allerta quantità minima prodotto"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configurazione punto vendita"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_pos_session
msgid "Point of Sale Session"
msgstr "Sessione punto vendita"

#. module: pos_stock_available_online
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Product Quantity"
msgstr "Quantità prodotto"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_stock_quant
msgid "Quants"
msgstr "Quanti"

#. module: pos_stock_available_online
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Show quantity in the following warehouses in additional to"
msgstr "Mostra le quantità nei magazzini seguenti in aggiunta a"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_stock_move
msgid "Stock Move"
msgstr "Movimento di magazzino"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_stock_notifier_pos_mixin
msgid "Stock Notifier POS Mixin"
msgstr "Mixin POS avvisatore giacenza"

#. module: pos_stock_available_online
#. odoo-javascript
#: code:addons/pos_stock_available_online/static/src/xml/Screens/ProductScreen/ProductItem.xml:0
#, python-format
msgid "Total"
msgstr "Totale"

#. module: pos_stock_available_online
#: model:ir.model,name:pos_stock_available_online.model_stock_warehouse
msgid "Warehouse"
msgstr "Magazzino"

#. module: pos_stock_available_online
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "Warehouses must belong to the same company as POS."
msgstr "Il magazzino deve appartenere alla stessa azienda del POS."

#. module: pos_stock_available_online
#: model_terms:ir.ui.view,arch_db:pos_stock_available_online.res_config_settings_view_form
msgid "warehouse"
msgstr "magazzino"
Loading