Skip to content
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

[16.0][MIG] pos_place: Migration to 16.0 (from 12.0) #1257

Draft
wants to merge 32 commits into
base: 16.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e6da048
[ADD] New module pos_place
legalsylvain Jul 31, 2019
51a85a2
[IMP] Config for each pos
quentinDupont Apr 20, 2020
3c7307f
Update pos_place/models/pos_order.py
legalsylvain Apr 21, 2020
1ce6941
[UPD] Update pos_place.pot
oca-travis Apr 23, 2020
b8dc292
[UPD] README.rst
OCA-git-bot Apr 23, 2020
8e1d064
[ADD] icon.png
OCA-git-bot Apr 23, 2020
ac19fc5
[FIX] avoid error if user is not in the group group_pos_place_user
legalsylvain May 3, 2020
a2386b0
pos_place 12.0.1.0.1
OCA-git-bot May 4, 2020
1ee0136
Added translation using Weblate (Spanish)
danimv5 Jul 27, 2020
61d4b8b
Translated using Weblate (Spanish)
danimv5 Jul 27, 2020
99714cd
[REF] adopt several modules
legalsylvain Aug 13, 2021
b7643ff
[UPD] README.rst
OCA-git-bot Aug 13, 2021
ef79b9e
pos_place 12.0.1.0.2
OCA-git-bot Aug 13, 2021
60d1e8c
[IMP] pos_place : add demo data;
legalsylvain Apr 26, 2022
d63904c
[UPD] Update pos_place.pot
oca-travis Jun 30, 2022
df8052c
pos_place 12.0.1.0.3
OCA-git-bot Jun 30, 2022
7a14ea9
Update translation files
oca-transbot Jun 30, 2022
9c7078e
[IMP] pre-commit run -a
ivantodorovich Jul 12, 2022
3dee2b8
pos_place 12.0.1.0.4
OCA-git-bot Aug 5, 2022
79cf350
Added translation using Weblate (Italian)
mymage Mar 17, 2023
7b8d042
Translated using Weblate (Italian)
mymage Mar 17, 2023
38c4b4c
[UPD] README.rst
OCA-git-bot Sep 3, 2023
e3cdc36
[IMP] add a menu entry in account module to manage pos place for user…
legalsylvain Jul 31, 2023
e1ebde9
[IMP] pos_place : update french tranlsation
legalsylvain Sep 11, 2023
ab86082
Update translation files
weblate Oct 9, 2023
f216846
[IMP] pos_place: pre-commit stuff
legalsylvain Oct 28, 2024
f972843
[MIG] pos_place: Migration to 16.0 (from 12.0)
legalsylvain Oct 28, 2024
d10b251
fixup! [MIG] pos_place: Migration to 16.0 (from 12.0)
legalsylvain Oct 28, 2024
e7dd080
fixup! fixup! [MIG] pos_place: Migration to 16.0 (from 12.0)
legalsylvain Oct 28, 2024
935c643
fixup! fixup! fixup! [MIG] pos_place: Migration to 16.0 (from 12.0)
legalsylvain Oct 28, 2024
a85c44b
fixup! fixup! fixup! fixup! [MIG] pos_place: Migration to 16.0 (from …
legalsylvain Oct 28, 2024
4905331
wip
legalsylvain Nov 6, 2024
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
121 changes: 121 additions & 0 deletions pos_place/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
======================
Point of Sale - Places
======================

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

.. |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/16.0/pos_place
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_place
: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=16.0
:alt: Try me on Runboat

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

This module extends the functionality of point of sale to support saling
in the street using the point of sale and to allow you to mention on the
pos order, the place where the seller is for the time being.

For that purpose, it introduce a new model ``pos.place``.

**Table of contents**

.. contents::
:local:

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

To configure this module, you need to:

* Add your users to the new group 'Point of Sale - Places' (User or Manager)

* Go to Point of Sale / Configuration / Places

* Create your places

.. figure:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_place/static/description/pos_place_tree.png

Usage
=====

To use this module, you need to

* open the point of sale

* Click on 'Place' Button and select the place where you are

.. figure:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_place/static/description/pos_front_end_ui.png

* All the next Pos Order will be related to this place.

.. figure:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_place/static/description/pos_order_tree.png


* You can then, make statistic over best places

.. figure:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_place/static/description/report_pos_order_graph.png

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_place%0Aversion:%2016.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
~~~~~~~

* GRAP

Contributors
~~~~~~~~~~~~

* Sylvain LE GAL <https://twitter.com/legalsylvain>

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-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain

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

|maintainer-legalsylvain|

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/16.0/pos_place>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions pos_place/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import report
42 changes: 42 additions & 0 deletions pos_place/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright (C) 2014 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Point of Sale - Places",
"summary": "Define places on PoS orders",
"version": "16.0.1.0.0",
"category": "Point of Sale",
"author": "GRAP,Odoo Community Association (OCA)",
"maintainers": ["legalsylvain"],
"website": "https://github.com/OCA/pos",
"license": "AGPL-3",
"depends": ["point_of_sale"],
"data": [
"security/ir_module_category.xml",
"security/ir_rule.xml",
"security/res_groups.xml",
"security/ir.model.access.csv",
"views/view_account_move.xml",
"views/view_pos_place.xml",
"views/view_pos_order.xml",
],
"assets": {
"point_of_sale.assets": [
"pos_place/static/src/js/models.esm.js",
"pos_place/static/src/xml/ChromeWidgets/PosPlaceName.xml",
"pos_place/static/src/xml/ChromeWidgets/PosPlaceName.js",
"pos_place/static/src/xml/Chrome.xml",
],
},
# "qweb": [
# "static/src/xml/pos_place.xml",
# ],
"demo": [
"demo/pos_place.xml",
],
"images": [
"static/description/pos_front_end_ui.png",
"static/description/pos_config_form.png",
"static/description/pos_order_search.png",
],
}
24 changes: 24 additions & 0 deletions pos_place/demo/pos_place.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2014 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>

<record id="pos_place_MUL" model="pos.place">
<field name="code">MUL</field>
<field name="name">La Mulatière (69350 - France)</field>
</record>

<record id="pos_place_OBS" model="pos.place">
<field name="code">OBS</field>
<field name="name">Montée de L'observance (69009 - France)</field>
</record>

<record id="pos_place_GAR" model="pos.place">
<field name="code">GAR</field>
<field name="name">Gare de Francheville (69340 - France)</field>
</record>

</odoo>
165 changes: 165 additions & 0 deletions pos_place/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_place
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-07-27 11:19+0000\n"
"Last-Translator: Daniel Martinez Vila <daniel.martinez@qubiq.es>\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 3.10\n"

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_place__active
msgid "Active"
msgstr "Activo"

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_place__code
#: model_terms:ir.ui.view,arch_db:pos_place.view_pos_place_form
msgid "Code"
msgstr "Código"

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_place__company_id
msgid "Company"
msgstr "Compañía"

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_place__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_place__create_date
msgid "Created on"
msgstr "Creado el"

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_place__display_name
msgid "Display Name"
msgstr "Nombre a mostrar"

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_place__id
msgid "ID"
msgstr "ID"

#. module: pos_place
#: model:ir.model,name:pos_place.model_account_invoice
msgid "Invoice"
msgstr ""

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_place____last_update
msgid "Last Modified on"
msgstr "Última modificación en"

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_place__write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_place__write_date
msgid "Last Updated on"
msgstr "Última actualización el"

#. module: pos_place
#: model:res.groups,name:pos_place.group_pos_place_manager
msgid "Manager"
msgstr "Gerente"

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_place__name
#: model_terms:ir.ui.view,arch_db:pos_place.view_pos_place_form
msgid "Name"
msgstr "Nombre"

#. module: pos_place
#. openerp-web
#: code:addons/pos_place/static/src/js/widget.js:41
#: model:ir.model.fields,field_description:pos_place.field_account_invoice__place_id
#: model:ir.model.fields,field_description:pos_place.field_pos_order__place_id
#: model:ir.model.fields,field_description:pos_place.field_report_pos_order__place_id
#, python-format
msgid "Place"
msgstr "Lugar"

#. module: pos_place
#. openerp-web
#: code:addons/pos_place/static/src/xml/pos_place.xml:28
#: code:addons/pos_place/static/src/xml/pos_place.xml:41
#, python-format
msgid "Place:"
msgstr "Lugar:"

#. module: pos_place
#: model:ir.actions.act_window,name:pos_place.action_pos_place
#: model:ir.ui.menu,name:pos_place.menu_pos_place
#: model:ir.ui.menu,name:pos_place.menu_pos_place_account
msgid "Places"
msgstr "Lugares"

#. module: pos_place
#: model:ir.module.category,name:pos_place.module_category_pos_place
msgid "Point of Sale - Places"
msgstr "Punto de Venta - Lugares"

#. module: pos_place
#: model:ir.model,name:pos_place.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configuración del punto de venta"

#. module: pos_place
#: model:ir.model,name:pos_place.model_pos_order
msgid "Point of Sale Orders"
msgstr "Pedidos de Punto de Venta"

#. module: pos_place
#: model:ir.model,name:pos_place.model_report_pos_order
msgid "Point of Sale Orders Report"
msgstr "Informe de pedidos de punto de venta"

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_config__group_pos_place_user_id
msgid "Point of Sale Place User Group"
msgstr "Lugares del grupo de usuarios del Punto de Venta"

#. module: pos_place
#: model:ir.model,name:pos_place.model_pos_place
msgid "Point of Sale Places"
msgstr "Lugares de Punto de Venta"

#. module: pos_place
#. openerp-web
#: code:addons/pos_place/static/src/js/gui.js:31
#, python-format
msgid "Select a Place"
msgstr "Selecciona un lugar"

#. module: pos_place
#: model:ir.model.fields,help:pos_place.field_pos_config__group_pos_place_user_id
msgid ""
"This field is there to pass the id of the pos place user group to the point "
"of sale client."
msgstr ""
"Este campo está allí para pasar la identificación del grupo de usuarios del "
"lugar PdV al cliente del punto de venta."

#. module: pos_place
#: model:ir.model.fields,field_description:pos_place.field_pos_config__use_pos_place
msgid "Use Point of Sale places"
msgstr "Use lugares de puntos de venta"

#. module: pos_place
#: model:res.groups,name:pos_place.group_pos_place_user
msgid "User"
msgstr "Usuario"
Loading
Loading