Compare commits
No commits in common. '12.0' and '10.0' have entirely different histories.
-
1.gitignore
-
28.travis.yml
-
7CONTRIBUTING.md
-
98README.md
-
57account_cash_invoice/README.rst
-
5account_cash_invoice/__init__.py
-
21account_cash_invoice/__manifest__.py
-
153account_cash_invoice/i18n/account_cash_invoice.pot
-
158account_cash_invoice/i18n/es.po
-
157account_cash_invoice/i18n/fr.po
-
157account_cash_invoice/i18n/it.po
-
4account_cash_invoice/models/__init__.py
-
35account_cash_invoice/models/account_bank_statement_line.py
-
0account_cash_invoice/static/description/icon.png
-
4account_cash_invoice/tests/__init__.py
-
81account_cash_invoice/tests/test_pay_invoice.py
-
5account_cash_invoice/wizard/__init__.py
-
100account_cash_invoice/wizard/cash_invoice_in.py
-
49account_cash_invoice/wizard/cash_invoice_in.xml
-
104account_cash_invoice/wizard/cash_invoice_out.py
-
48account_cash_invoice/wizard/cash_invoice_out.xml
-
119hw_telium_payment_terminal/README.rst
-
1hw_telium_payment_terminal/__init__.py
-
16hw_telium_payment_terminal/__manifest__.py
-
1hw_telium_payment_terminal/controllers/__init__.py
-
320hw_telium_payment_terminal/controllers/main.py
-
197hw_telium_payment_terminal/test-scripts/telium-test.py
-
4oca_dependencies.txt
-
88pos_accented_search/README.rst
-
18pos_accented_search/__manifest__.py
-
14pos_accented_search/i18n/es.po
-
14pos_accented_search/i18n/pos_accented_search.pot
-
2pos_accented_search/readme/CONTRIBUTORS.rst
-
2pos_accented_search/readme/DESCRIPTION.rst
-
1pos_accented_search/readme/USAGE.rst
-
428pos_accented_search/static/description/index.html
-
29pos_accented_search/static/src/js/db.js
-
7pos_accented_search/views/templates.xml
-
92pos_access_right/README.rst
-
24pos_access_right/__manifest__.py
-
33pos_access_right/demo/res_groups.xml
-
155pos_access_right/i18n/ar.po
-
184pos_access_right/i18n/ca.po
-
166pos_access_right/i18n/es.po
-
189pos_access_right/i18n/fr.po
-
152pos_access_right/i18n/pos_access_right.pot
-
169pos_access_right/i18n/ru.po
-
87pos_access_right/models/pos_config.py
-
1pos_access_right/readme/CONFIGURE.rst
-
1pos_access_right/readme/CONTRIBUTORS.rst
-
7pos_access_right/readme/DESCRIPTION.rst
-
3pos_access_right/readme/USAGE.rst
-
39pos_access_right/security/res_groups.xml
-
BINpos_access_right/static/description/admin_numpad.png
-
BINpos_access_right/static/description/demo_error.png
-
BINpos_access_right/static/description/demo_numpad.png
-
BINpos_access_right/static/description/icon.png
-
437pos_access_right/static/description/index.html
-
BINpos_access_right/static/description/new_groups.png
-
13pos_access_right/static/src/css/pos_access_right.css
-
176pos_access_right/static/src/js/pos_access_right.js
-
17pos_access_right/static/src/xml/templates.xml
-
94pos_backend_communication/README.rst
-
0pos_backend_communication/__init__.py
-
22pos_backend_communication/__manifest__.py
-
26pos_backend_communication/i18n/es.po
-
26pos_backend_communication/i18n/it.po
-
22pos_backend_communication/i18n/pos_backend_communication.pot
-
0pos_backend_communication/static/description/icon.png
-
6pos_backend_communication/static/src/css/pos_backend_communication.css
-
42pos_backend_communication/static/src/js/back.js
-
40pos_backend_communication/static/src/js/common.js
-
10pos_backend_communication/views/assets.xml
-
96pos_backend_partner/README.rst
-
2pos_backend_partner/__init__.py
-
23pos_backend_partner/__manifest__.py
-
54pos_backend_partner/i18n/es.po
-
53pos_backend_partner/i18n/fr.po
-
49pos_backend_partner/i18n/pos_backend_partner.pot
-
2pos_backend_partner/models/__init__.py
-
25pos_backend_partner/models/partner.py
-
0pos_backend_partner/static/description/icon.png
-
BINpos_backend_partner/static/description/pos_backend_partner_1.png
-
BINpos_backend_partner/static/description/pos_backend_partner_2.png
-
BINpos_backend_partner/static/description/pos_backend_partner_3.png
-
11pos_backend_partner/static/src/css/pos_backend_partner.css
-
17pos_backend_partner/static/src/js/back_partner.js
-
89pos_backend_partner/static/src/js/pos_partner.js
-
18pos_backend_partner/views/assets.xml
-
25pos_backend_partner/views/backend_partner.xml
-
161pos_cash_move_reason/README.rst
-
5pos_cash_move_reason/__init__.py
-
28pos_cash_move_reason/__manifest__.py
-
21pos_cash_move_reason/demo/account_account.xml
-
33pos_cash_move_reason/demo/pos_move_reason.xml
-
231pos_cash_move_reason/i18n/ar.po
-
228pos_cash_move_reason/i18n/bg.po
-
231pos_cash_move_reason/i18n/bs.po
-
231pos_cash_move_reason/i18n/ca.po
-
229pos_cash_move_reason/i18n/ca_ES.po
@ -1,7 +0,0 @@ |
|||
# OCA Guidelines |
|||
|
|||
Please follow the official guide from the [OCA Guidelines page](https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md). |
|||
|
|||
## Project Specific Guidelines |
|||
|
|||
This project does not have specific coding guidelines. |
@ -0,0 +1,57 @@ |
|||
.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg |
|||
:alt: License: LGPL-3 |
|||
|
|||
=============== |
|||
PoS Pay invoice |
|||
=============== |
|||
|
|||
This modules allows to pay an existing Supplier Invoice / Customer Refund, or |
|||
to collect payment for an existing Customer Invoice, using the PoS |
|||
backend session. |
|||
|
|||
|
|||
Usage |
|||
===== |
|||
|
|||
#. Go to *Point of Sale / Dashboard* and create and/or open an existing |
|||
Session. |
|||
#. Press the button **Pay Invoice** to pay a Supplier Invoice or a Customer |
|||
Refund. You will need to select the expected Journal |
|||
#. Select **Collect Payment from Invoice** in to receive a payment of an |
|||
existing Customer Invoice or a Supplier Refund. |
|||
|
|||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas |
|||
:alt: Try me on Runbot |
|||
:target: https://runbot.odoo-community.org/runbot/repo/github-com-oca-pos-184 |
|||
|
|||
|
|||
Known issues / Roadmap |
|||
====================== |
|||
|
|||
* Cannot pay invoices in a different currency than that defined in the journal |
|||
associated to the payment method used to pay/collect payment. |
|||
|
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Enric Tobella <etobella@creublanca.es> |
|||
|
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
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. |
|||
|
|||
To contribute to this module, please visit http://odoo-community.org. |
@ -0,0 +1,5 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from . import models |
|||
from . import wizard |
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright (C) 2017 Creu Blanca |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
{ |
|||
'name': 'Account cash invoice', |
|||
'version': '10.0.1.0.0', |
|||
'category': 'Account', |
|||
'author': "Creu Blanca," |
|||
"Odoo Community Association (OCA)", |
|||
'website': 'https://github.com/OCA/pos', |
|||
'summary': 'Pay and receive invoices from bank statements', |
|||
"license": "LGPL-3", |
|||
'depends': [ |
|||
"account", |
|||
], |
|||
'data': [ |
|||
"wizard/cash_invoice_out.xml", |
|||
"wizard/cash_invoice_in.xml", |
|||
], |
|||
} |
@ -0,0 +1,153 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_cash_invoice |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 10.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: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_amount |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_amount |
|||
msgid "Amount" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model,name:account_cash_invoice.model_account_bank_statement_line |
|||
msgid "Bank Statement Line" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_in_form |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_out_form |
|||
msgid "Cancel" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.actions.act_window,name:account_cash_invoice.action_cash_invoice_out_from_statement |
|||
msgid "Collect Payment from Invoice" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_out_form |
|||
msgid "Collect payment from customer invoice or supplier refund" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_company_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_company_id |
|||
msgid "Company id" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_create_uid |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_create_uid |
|||
msgid "Created by" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_create_date |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_create_date |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_currency_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_currency_id |
|||
msgid "Currency id" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_display_name |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_display_name |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_id |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_account_bank_statement_line_invoice_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_invoice_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_invoice_id |
|||
msgid "Invoice" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_journal_count |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_journal_count |
|||
msgid "Journal count" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_journal_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_journal_id |
|||
msgid "Journal id" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_journal_ids |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_journal_ids |
|||
msgid "Journal ids" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in___last_update |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out___last_update |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_write_uid |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_write_uid |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_write_date |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_write_date |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.actions.act_window,name:account_cash_invoice.action_cash_invoice_in_from_statement |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_in_form |
|||
msgid "Pay invoice" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_in_form |
|||
msgid "Pay supplier invoice or customer refund" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_name |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_name |
|||
msgid "Reason" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_out_form |
|||
msgid "Register" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model,name:account_cash_invoice.model_cash_invoice_in |
|||
msgid "cash.invoice.in" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model,name:account_cash_invoice.model_cash_invoice_out |
|||
msgid "cash.invoice.out" |
|||
msgstr "" |
|||
|
@ -0,0 +1,158 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_cash_invoice |
|||
# |
|||
# Translators: |
|||
# OCA Transbot <transbot@odoo-community.org>, 2017 |
|||
# enjolras <yo@miguelrevilla.com>, 2018 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 10.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2018-03-01 02:01+0000\n" |
|||
"PO-Revision-Date: 2018-03-01 02:01+0000\n" |
|||
"Last-Translator: enjolras <yo@miguelrevilla.com>, 2018\n" |
|||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_amount |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_amount |
|||
msgid "Amount" |
|||
msgstr "Cantidad" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model,name:account_cash_invoice.model_account_bank_statement_line |
|||
msgid "Bank Statement Line" |
|||
msgstr "Línea de extracto bancario" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_in_form |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_out_form |
|||
msgid "Cancel" |
|||
msgstr "Cancelar" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.actions.act_window,name:account_cash_invoice.action_cash_invoice_out_from_statement |
|||
msgid "Collect Payment from Invoice" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_out_form |
|||
msgid "Collect payment from customer invoice or supplier refund" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_company_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_company_id |
|||
msgid "Company id" |
|||
msgstr "ID de la empresa" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_create_uid |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_create_uid |
|||
msgid "Created by" |
|||
msgstr "Creado por" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_create_date |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_create_date |
|||
msgid "Created on" |
|||
msgstr "Creado el" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_currency_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_currency_id |
|||
msgid "Currency id" |
|||
msgstr "ID de la moneda" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_display_name |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_display_name |
|||
msgid "Display Name" |
|||
msgstr "Nombre a mostrar" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_id |
|||
msgid "ID" |
|||
msgstr "ID" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_account_bank_statement_line_invoice_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_invoice_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_invoice_id |
|||
msgid "Invoice" |
|||
msgstr "Factura" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_journal_count |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_journal_count |
|||
msgid "Journal count" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_journal_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_journal_id |
|||
msgid "Journal id" |
|||
msgstr "ID del diario" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_journal_ids |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_journal_ids |
|||
msgid "Journal ids" |
|||
msgstr "IDs del diario" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in___last_update |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out___last_update |
|||
msgid "Last Modified on" |
|||
msgstr "Última modificación en" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_write_uid |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_write_uid |
|||
msgid "Last Updated by" |
|||
msgstr "Última actualización por" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_write_date |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_write_date |
|||
msgid "Last Updated on" |
|||
msgstr "Última actualización el" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.actions.act_window,name:account_cash_invoice.action_cash_invoice_in_from_statement |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_in_form |
|||
msgid "Pay invoice" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_in_form |
|||
msgid "Pay supplier invoice or customer refund" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_name |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_name |
|||
msgid "Reason" |
|||
msgstr "Motivo" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_out_form |
|||
msgid "Register" |
|||
msgstr "Registrar" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model,name:account_cash_invoice.model_cash_invoice_in |
|||
msgid "cash.invoice.in" |
|||
msgstr "cash.invoice.in" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model,name:account_cash_invoice.model_cash_invoice_out |
|||
msgid "cash.invoice.out" |
|||
msgstr "cash.invoice.out" |
@ -0,0 +1,157 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_cash_invoice |
|||
# |
|||
# Translators: |
|||
# leemannd <denis.leemann@camptocamp.com>, 2017 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 10.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2017-12-07 01:42+0000\n" |
|||
"PO-Revision-Date: 2017-12-07 01:42+0000\n" |
|||
"Last-Translator: leemannd <denis.leemann@camptocamp.com>, 2017\n" |
|||
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" |
|||
"Language: fr\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" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_amount |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_amount |
|||
msgid "Amount" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model,name:account_cash_invoice.model_account_bank_statement_line |
|||
msgid "Bank Statement Line" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_in_form |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_out_form |
|||
msgid "Cancel" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.actions.act_window,name:account_cash_invoice.action_cash_invoice_out_from_statement |
|||
msgid "Collect Payment from Invoice" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_out_form |
|||
msgid "Collect payment from customer invoice or supplier refund" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_company_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_company_id |
|||
msgid "Company id" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_create_uid |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_create_uid |
|||
msgid "Created by" |
|||
msgstr "Créé par" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_create_date |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_create_date |
|||
msgid "Created on" |
|||
msgstr "Créé le" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_currency_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_currency_id |
|||
msgid "Currency id" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_display_name |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_display_name |
|||
msgid "Display Name" |
|||
msgstr "Nom Affiché" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_id |
|||
msgid "ID" |
|||
msgstr "ID" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_account_bank_statement_line_invoice_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_invoice_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_invoice_id |
|||
msgid "Invoice" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_journal_count |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_journal_count |
|||
msgid "Journal count" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_journal_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_journal_id |
|||
msgid "Journal id" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_journal_ids |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_journal_ids |
|||
msgid "Journal ids" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in___last_update |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out___last_update |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_write_uid |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_write_uid |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_write_date |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_write_date |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.actions.act_window,name:account_cash_invoice.action_cash_invoice_in_from_statement |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_in_form |
|||
msgid "Pay invoice" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_in_form |
|||
msgid "Pay supplier invoice or customer refund" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_name |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_name |
|||
msgid "Reason" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_out_form |
|||
msgid "Register" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model,name:account_cash_invoice.model_cash_invoice_in |
|||
msgid "cash.invoice.in" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model,name:account_cash_invoice.model_cash_invoice_out |
|||
msgid "cash.invoice.out" |
|||
msgstr "" |
@ -0,0 +1,157 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_cash_invoice |
|||
# |
|||
# Translators: |
|||
# Francesco Fresta <franco.fresta@gmail.com>, 2018 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 10.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2018-03-01 02:01+0000\n" |
|||
"PO-Revision-Date: 2018-03-01 02:01+0000\n" |
|||
"Last-Translator: Francesco Fresta <franco.fresta@gmail.com>, 2018\n" |
|||
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\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" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_amount |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_amount |
|||
msgid "Amount" |
|||
msgstr "Totale" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model,name:account_cash_invoice.model_account_bank_statement_line |
|||
msgid "Bank Statement Line" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_in_form |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_out_form |
|||
msgid "Cancel" |
|||
msgstr "Elimina" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.actions.act_window,name:account_cash_invoice.action_cash_invoice_out_from_statement |
|||
msgid "Collect Payment from Invoice" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_out_form |
|||
msgid "Collect payment from customer invoice or supplier refund" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_company_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_company_id |
|||
msgid "Company id" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_create_uid |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_create_uid |
|||
msgid "Created by" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_create_date |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_create_date |
|||
msgid "Created on" |
|||
msgstr "Creato il" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_currency_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_currency_id |
|||
msgid "Currency id" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_display_name |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_display_name |
|||
msgid "Display Name" |
|||
msgstr "Mostra il nome" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_id |
|||
msgid "ID" |
|||
msgstr "ID" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_account_bank_statement_line_invoice_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_invoice_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_invoice_id |
|||
msgid "Invoice" |
|||
msgstr "Fattura" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_journal_count |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_journal_count |
|||
msgid "Journal count" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_journal_id |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_journal_id |
|||
msgid "Journal id" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_journal_ids |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_journal_ids |
|||
msgid "Journal ids" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in___last_update |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out___last_update |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_write_uid |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_write_uid |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_write_date |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_write_date |
|||
msgid "Last Updated on" |
|||
msgstr "Ultimo aggiornamento il" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.actions.act_window,name:account_cash_invoice.action_cash_invoice_in_from_statement |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_in_form |
|||
msgid "Pay invoice" |
|||
msgstr "Paga la fattura" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_in_form |
|||
msgid "Pay supplier invoice or customer refund" |
|||
msgstr "" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_in_name |
|||
#: model:ir.model.fields,field_description:account_cash_invoice.field_cash_invoice_out_name |
|||
msgid "Reason" |
|||
msgstr "Causale" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.ui.view,arch_db:account_cash_invoice.cash_invoice_out_form |
|||
msgid "Register" |
|||
msgstr "Registro" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model,name:account_cash_invoice.model_cash_invoice_in |
|||
msgid "cash.invoice.in" |
|||
msgstr "cash.invoice.in" |
|||
|
|||
#. module: account_cash_invoice |
|||
#: model:ir.model,name:account_cash_invoice.model_cash_invoice_out |
|||
msgid "cash.invoice.out" |
|||
msgstr "cash.invoice.out" |
@ -0,0 +1,4 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from . import account_bank_statement_line |
@ -0,0 +1,35 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright (C) 2017 Creu Blanca |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from odoo import api, fields, models |
|||
|
|||
|
|||
class AccountBankStatementLine(models.Model): |
|||
_inherit = 'account.bank.statement.line' |
|||
|
|||
invoice_id = fields.Many2one( |
|||
'account.invoice', |
|||
string='Invoice', |
|||
readonly=True |
|||
) |
|||
|
|||
@api.multi |
|||
def fast_counterpart_creation(self): |
|||
for st_line in self: |
|||
if not st_line.invoice_id: |
|||
super( |
|||
AccountBankStatementLine, st_line |
|||
).fast_counterpart_creation() |
|||
else: |
|||
invoice = st_line.invoice_id |
|||
move_line = invoice.move_id.line_ids.filtered( |
|||
lambda r: r.account_id.id == invoice.account_id.id |
|||
) |
|||
vals = { |
|||
'name': st_line.name, |
|||
'debit': st_line.amount < 0 and -st_line.amount or 0.0, |
|||
'credit': st_line.amount > 0 and st_line.amount or 0.0, |
|||
'move_line': move_line |
|||
} |
|||
st_line.process_reconciliation(counterpart_aml_dicts=[vals]) |
Before Width: 128 | Height: 128 | Size: 9.2 KiB After Width: 128 | Height: 128 | Size: 9.2 KiB |
@ -0,0 +1,4 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from . import test_pay_invoice |
@ -0,0 +1,81 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 Creu Blanca <https://creublanca.es/> |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from odoo.tests import common |
|||
|
|||
|
|||
class TestSessionPayInvoice(common.TransactionCase): |
|||
def setUp(self): |
|||
super(TestSessionPayInvoice, self).setUp() |
|||
self.company = self.env.ref('base.main_company') |
|||
partner = self.env.ref('base.partner_demo') |
|||
self.invoice_out = self.env['account.invoice'].create({ |
|||
'company_id': self.company.id, |
|||
'partner_id': partner.id, |
|||
'date_invoice': '2016-03-12', |
|||
'type': 'out_invoice', |
|||
}) |
|||
account = self.env['account.account'].create({ |
|||
'code': 'test_cash_pay_invoice', |
|||
'company_id': self.company.id, |
|||
'name': 'Test', |
|||
'user_type_id': self.env.ref( |
|||
'account.data_account_type_revenue').id |
|||
}) |
|||
self.env['account.invoice.line'].create({ |
|||
'product_id': self.env.ref('product.product_delivery_02').id, |
|||
'invoice_id': self.invoice_out.id, |
|||
'account_id': account.id, |
|||
'name': 'Producto de prueba', |
|||
'quantity': 1.0, |
|||
'price_unit': 100.0, |
|||
}) |
|||
self.invoice_out._onchange_invoice_line_ids() |
|||
self.invoice_out.action_invoice_open() |
|||
self.invoice_out.number = '2999/99999' |
|||
self.invoice_in = self.env['account.invoice'].create({ |
|||
'partner_id': partner.id, |
|||
'company_id': self.company.id, |
|||
'type': 'in_invoice', |
|||
'date_invoice': '2016-03-12', |
|||
}) |
|||
self.env['account.invoice.line'].create({ |
|||
'product_id': self.env.ref('product.product_delivery_02').id, |
|||
'invoice_id': self.invoice_in.id, |
|||
'name': 'Producto de prueba', |
|||
'account_id': account.id, |
|||
'quantity': 1.0, |
|||
'price_unit': 100.0, |
|||
}) |
|||
self.invoice_in._onchange_invoice_line_ids() |
|||
self.invoice_in.action_invoice_open() |
|||
self.invoice_in.number = '2999/99999' |
|||
self.journal = self.env['account.journal'].search([ |
|||
('company_id', '=', self.company.id), |
|||
('type', '=', 'cash') |
|||
], limit=1).ensure_one() |
|||
|
|||
def test_bank_statement(self): |
|||
statement = self.env['account.bank.statement'].create({ |
|||
'name': 'Statment', |
|||
'journal_id': self.journal.id |
|||
}) |
|||
in_invoice = self.env['cash.invoice.in'].with_context( |
|||
active_ids=statement.ids, active_model='account.bank.statement' |
|||
).create({ |
|||
'invoice_id': self.invoice_in.id, |
|||
'amount': 100.0 |
|||
}) |
|||
in_invoice.run() |
|||
out_invoice = self.env['cash.invoice.out'].with_context( |
|||
active_ids=statement.ids, active_model='account.bank.statement' |
|||
).create({ |
|||
'invoice_id': self.invoice_out.id, |
|||
'amount': 100.0 |
|||
}) |
|||
out_invoice.run() |
|||
statement.balance_end_real = statement.balance_start |
|||
statement.check_confirm_bank() |
|||
self.assertEqual(self.invoice_out.residual, 0.) |
|||
self.assertEqual(self.invoice_in.residual, 0.) |
@ -0,0 +1,5 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from . import cash_invoice_in |
|||
from . import cash_invoice_out |
@ -0,0 +1,100 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright (C) 2017 Creu Blanca |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from odoo import api, fields, models |
|||
|
|||
|
|||
class CashInvoiceIn(models.TransientModel): |
|||
_name = 'cash.invoice.in' |
|||
_inherit = 'cash.box.out' |
|||
|
|||
def _default_value(self, default_function): |
|||
active_model = self.env.context.get('active_model', False) |
|||
if active_model: |
|||
active_ids = self.env.context.get('active_ids', False) |
|||
return default_function(active_model, active_ids) |
|||
return None |
|||
|
|||
def _default_company(self): |
|||
return self._default_value(self.default_company) |
|||
|
|||
def _default_currency(self): |
|||
return self._default_value(self.default_currency) |
|||
|
|||
def _default_journals(self): |
|||
return self._default_value(self.default_journals) |
|||
|
|||
def _default_journal(self): |
|||
journals = self._default_journals() |
|||
if journals and len(journals.ids) > 0: |
|||
return self.env['account.journal'].browse( |
|||
journals.ids[0] |
|||
).ensure_one() |
|||
|
|||
def _default_journal_count(self): |
|||
return len(self._default_journals().ids) |
|||
|
|||
invoice_id = fields.Many2one( |
|||
'account.invoice', |
|||
string='Invoice', |
|||
required=True |
|||
) |
|||
name = fields.Char( |
|||
related='invoice_id.number' |
|||
) |
|||
company_id = fields.Many2one( |
|||
'res.company', |
|||
default=_default_company, |
|||
required=True, |
|||
readonly=True |
|||
) |
|||
currency_id = fields.Many2one( |
|||
'res.currency', |
|||
default=_default_currency, |
|||
required=True, |
|||
readonly=True |
|||
) |
|||
journal_ids = fields.Many2many( |
|||
'account.journal', |
|||
default=_default_journals, |
|||
required=True, |
|||
readonly=True |
|||
) |
|||
journal_id = fields.Many2one( |
|||
'account.journal', |
|||
required=True, |
|||
default=_default_journal |
|||
) |
|||
journal_count = fields.Integer( |
|||
default=_default_journal_count, |
|||
readonly=True |
|||
) |
|||
|
|||
def default_company(self, active_model, active_ids): |
|||
return self.env[active_model].browse(active_ids)[0].company_id |
|||
|
|||
def default_currency(self, active_model, active_ids): |
|||
return self.default_company(active_model, active_ids).currency_id |
|||
|
|||
def default_journals(self, active_model, active_ids): |
|||
return self.env[active_model].browse(active_ids)[0].journal_id |
|||
|
|||
@api.onchange('journal_ids') |
|||
def compute_journal_count(self): |
|||
self.journal_count = len(self.journal_ids.ids) |
|||
|
|||
@api.onchange('invoice_id') |
|||
def _onchange_invoice(self): |
|||
self.amount = self.invoice_id.residual |
|||
|
|||
@api.multi |
|||
def _calculate_values_for_statement_line(self, record): |
|||
res = super(CashInvoiceIn, self)._calculate_values_for_statement_line( |
|||
record |
|||
) |
|||
res['invoice_id'] = self.invoice_id.id |
|||
res['account_id'] = self.invoice_id.account_id.id |
|||
res['ref'] = self.invoice_id.number |
|||
res['partner_id'] = self.invoice_id.partner_id.id |
|||
return res |
@ -0,0 +1,49 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<record id="cash_invoice_in_form" model="ir.ui.view"> |
|||
<field name="name">cash_invoice_in_form</field> |
|||
<field name="model">cash.invoice.in</field> |
|||
<field name="type">form</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Pay supplier invoice or customer refund"> |
|||
<group> |
|||
<field name="company_id" invisible="1"/> |
|||
<field name="journal_ids" invisible="1"/> |
|||
<field name="journal_count" invisible="1"/> |
|||
<field name="journal_id" |
|||
class="oe_inline" |
|||
domain="[('id', 'in', journal_ids[0][2])]" |
|||
options="{'no_create': True, 'no_open':True}" |
|||
attrs="{'invisible':[('journal_count', '<', 2)]}" |
|||
/> |
|||
<field name="invoice_id" |
|||
class="oe_inline" |
|||
domain="[('company_id', '=', company_id), |
|||
('state', '=', 'open'), |
|||
('currency_id', '=', currency_id), |
|||
('type', 'in', ['in_invoice', 'out_refund'])]" |
|||
options="{'no_create': True, 'no_open':True}" |
|||
/> |
|||
<label for="amount"/> |
|||
<div> |
|||
<field name="amount" class="oe_inline"/><field name="currency_id" class="oe_inline" groups="base.group_multi_currency"/> |
|||
</div> |
|||
</group> |
|||
<footer> |
|||
<button name="run" string="Pay invoice" type="object" class="btn-primary"/> |
|||
<button special="cancel" string="Cancel" class="btn-default"/> |
|||
</footer> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<act_window |
|||
id="action_cash_invoice_in_from_statement" |
|||
name="Pay invoice" |
|||
res_model="cash.invoice.in" |
|||
src_model="account.bank.statement" |
|||
view_mode="form" |
|||
target="new" |
|||
key2="client_action_multi" |
|||
/> |
|||
</odoo> |
@ -0,0 +1,104 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright (C) 2017 Creu Blanca |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from odoo import api, fields, models |
|||
|
|||
|
|||
class CashInvoiceOut(models.TransientModel): |
|||
_name = 'cash.invoice.out' |
|||
_inherit = 'cash.box.in' |
|||
|
|||
def _default_value(self, default_function): |
|||
active_model = self.env.context.get('active_model', False) |
|||
if active_model: |
|||
active_ids = self.env.context.get('active_ids', False) |
|||
return default_function(active_model, active_ids) |
|||
return None |
|||
|
|||
def _default_company(self): |
|||
return self._default_value(self.default_company) |
|||
|
|||
def _default_currency(self): |
|||
return self._default_value(self.default_currency) |
|||
|
|||
def _default_journals(self): |
|||
return self._default_value(self.default_journals) |
|||
|
|||
def _default_journal(self): |
|||
journals = self._default_journals() |
|||
if journals and len(journals.ids) > 0: |
|||
return self.env['account.journal'].browse( |
|||
journals.ids[0] |
|||
).ensure_one() |
|||
|
|||
def _default_journal_count(self): |
|||
return len(self._default_journals()) |
|||
|
|||
invoice_id = fields.Many2one( |
|||
'account.invoice', |
|||
string='Invoice', |
|||
required=True |
|||
) |
|||
name = fields.Char( |
|||
related='invoice_id.number' |
|||
) |
|||
company_id = fields.Many2one( |
|||
'res.company', |
|||
default=_default_company, |
|||
required=True, |
|||
readonly=True |
|||
) |
|||
currency_id = fields.Many2one( |
|||
'res.currency', |
|||
default=_default_currency, |
|||
required=True, |
|||
readonly=True) |
|||
journal_ids = fields.Many2many( |
|||
'account.journal', |
|||
default=_default_journals, |
|||
required=True, |
|||
readonly=True |
|||
) |
|||
journal_id = fields.Many2one( |
|||
'account.journal', |
|||
required=True, |
|||
default=_default_journal |
|||
) |
|||
journal_count = fields.Integer( |
|||
default=_default_journal_count, |
|||
readonly=True |
|||
) |
|||
|
|||
def default_company(self, active_model, active_ids): |
|||
return self.env[active_model].browse(active_ids)[0].company_id |
|||
|
|||
def default_currency(self, active_model, active_ids): |
|||
return self.default_company(active_model, active_ids).currency_id |
|||
|
|||
def default_journals(self, active_model, active_ids): |
|||
return self.env[active_model].browse(active_ids)[0].journal_id |
|||
|
|||
@api.onchange('journal_ids') |
|||
def compute_journal_count(self): |
|||
self.journal_count = len(self.journal_ids.ids) |
|||
|
|||
@api.onchange('journal_id') |
|||
def _onchange_journal(self): |
|||
self.currency_id = (self.journal_id.currency_id or |
|||
self.journal_id.company_id.currency_id) |
|||
|
|||
@api.onchange('invoice_id') |
|||
def _onchange_invoice(self): |
|||
self.amount = self.invoice_id.residual |
|||
|
|||
@api.multi |
|||
def _calculate_values_for_statement_line(self, record): |
|||
res = super(CashInvoiceOut, self)._calculate_values_for_statement_line( |
|||
record |
|||
) |
|||
res['invoice_id'] = self.invoice_id.id |
|||
res['account_id'] = self.invoice_id.account_id.id |
|||
res['ref'] = self.invoice_id.number |
|||
res['partner_id'] = self.invoice_id.partner_id.id |
|||
return res |
@ -0,0 +1,48 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<record id="cash_invoice_out_form" model="ir.ui.view"> |
|||
<field name="name">cash_invoice_out_form</field> |
|||
<field name="model">cash.invoice.out</field> |
|||
<field name="type">form</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Collect payment from customer invoice or supplier refund"> |
|||
<group> |
|||
<field name="company_id" invisible="1"/> |
|||
<field name="journal_ids" invisible="1"/> |
|||
<field name="journal_count" invisible="1"/> |
|||
<field name="journal_id" |
|||
class="oe_inline" |
|||
domain="[('id', 'in', journal_ids[0][2])]" |
|||
options="{'no_create': True, 'no_open':True}" |
|||
attrs="{'invisible':[('journal_count', '<', 2)]}" |
|||
/> |
|||
<field name="invoice_id" |
|||
class="oe_inline" |
|||
domain="[('company_id', '=', company_id), |
|||
('state', '=', 'open'), |
|||
('currency_id', '=', currency_id), |
|||
('type', 'in', ['out_invoice', 'in_refund'])]" |
|||
options="{'no_create': True, 'no_open':True}" |
|||
/> |
|||
<label for="amount"/> |
|||
<div> |
|||
<field name="amount" class="oe_inline"/><field name="currency_id" class="oe_inline" groups="base.group_multi_currency"/> |
|||
</div> |
|||
</group> |
|||
<footer> |
|||
<button name="run" string="Register" type="object" class="btn-primary"/> |
|||
<button special="cancel" string="Cancel" class="btn-default"/> |
|||
</footer> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
<act_window |
|||
id="action_cash_invoice_out_from_statement" |
|||
name="Collect Payment from Invoice" |
|||
res_model="cash.invoice.out" |
|||
src_model="account.bank.statement" |
|||
view_mode="form" |
|||
target="new" |
|||
key2="client_action_multi" |
|||
/> |
|||
</odoo> |
@ -1,119 +0,0 @@ |
|||
================================ |
|||
Hardware Telium Payment Terminal |
|||
================================ |
|||
|
|||
.. |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/12.0/hw_telium_payment_terminal |
|||
:alt: OCA/pos |
|||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png |
|||
:target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-hw_telium_payment_terminal |
|||
:alt: Translate me on Weblate |
|||
|
|||
|badge1| |badge2| |badge3| |badge4| |
|||
|
|||
This module adds support for credit card reader and checks printers |
|||
using Telium protocol in the Point of Sale. This module is designed to |
|||
be installed on the *POSbox* (i.e. the proxy on which the USB devices |
|||
are connected) and not on the main Odoo server. On the main Odoo server, |
|||
you should install the module *pos_payment_terminal*. |
|||
|
|||
This module has been developped during a POS code sprint at Akretion |
|||
France from July 7th to July 10th 2014. |
|||
|
|||
**Table of contents** |
|||
|
|||
.. contents:: |
|||
:local: |
|||
|
|||
Installation |
|||
============ |
|||
Add this module in the PosBox in this folder : |
|||
/home/pi/odoo/addons |
|||
Reboot the PosBox |
|||
|
|||
Configuration |
|||
============= |
|||
|
|||
The configuration of the hardware is done in the configuration file of |
|||
the Odoo server of the POSbox. You can add the following entries in |
|||
the configuration file (optional). |
|||
|
|||
* payment_terminal_device_name (default = /dev/ttyACM0) |
|||
* payment_terminal_device_rate (default = 9600) |
|||
|
|||
The Telium protocol is used by Ingenico and Sagem payment terminals. It |
|||
is based on the Concert protocol, so it can probably work with payment |
|||
terminals from other brands. This module implements the protocol E+ (and |
|||
not the protocol E), so it requires a Telium Manager version 37783600 |
|||
or superior. |
|||
Information : https://lists.launchpad.net/openerp-community/pdfcezlBjgtdJ.pdf |
|||
To get the version of the Telium Manager on an Ingenico |
|||
terminal press F > 0-TELIUM MANAGER > 2-Consultation > 4-Configuration |
|||
> 2-Software > 1-TERMINAL > On Display > Telium Manager and then read |
|||
the field *M20S*. |
|||
|
|||
You will need to configure your payment terminal to accept commands |
|||
from the POS. On an Ingenico terminal press F > 0-TELIUM MANAGER > |
|||
5-Initialization > 1-Parameters > Cash Connection and then select *On* |
|||
and then *USB*. After that, you should reboot the terminal. |
|||
|
|||
This module has been successfully tested with: |
|||
|
|||
* Ingenico EFTSmart4S |
|||
* Ingenico EFTSmart2 2640 with Telim Manager version 37784503 |
|||
* Ingenico iCT220 |
|||
* Ingenico iCT250 |
|||
* Ingenico i2200 cheque reader and writer |
|||
* Ingenico Desk/5000 (USB Mode) |
|||
|
|||
This module requires the Python library *pycountry* version >= 16.11.08, |
|||
if you use a currency different of EUR. |
|||
To install it, run: |
|||
|
|||
``sudo pip install pycountry`` |
|||
|
|||
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 smashing it by providing a detailed and welcomed |
|||
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20hw_telium_payment_terminal%0Aversion:%2012.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 |
|||
~~~~~~~ |
|||
|
|||
* Akretion |
|||
|
|||
Contributors |
|||
~~~~~~~~~~~~ |
|||
|
|||
* Florent de Labarre |
|||
|
|||
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/12.0/hw_telium_payment_terminal>`_ project on GitHub. |
|||
|
|||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
@ -1 +0,0 @@ |
|||
from . import controllers |
@ -1,16 +0,0 @@ |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
{ |
|||
'name': 'Hardware Telium Payment Terminal', |
|||
'version': '12.0.1.0.0', |
|||
'category': 'Hardware Drivers', |
|||
'license': 'AGPL-3', |
|||
'summary': 'Adds support for Payment Terminals using Telium protocol', |
|||
'author': "Akretion,Odoo Community Association (OCA)", |
|||
'website': 'http://www.github.com/OCA/pos', |
|||
'depends': ['hw_proxy'], |
|||
'external_dependencies': { |
|||
'python': ['serial', 'pycountry'], |
|||
}, |
|||
'data': [], |
|||
'installable': False, |
|||
} |
@ -1 +0,0 @@ |
|||
from . import main |
@ -1,320 +0,0 @@ |
|||
import logging |
|||
import simplejson |
|||
import time |
|||
import curses.ascii |
|||
from threading import Thread, Lock |
|||
from queue import Queue |
|||
|
|||
from odoo import http |
|||
from odoo.tools.config import config |
|||
|
|||
from odoo.addons.hw_proxy.controllers import main as hw_proxy |
|||
|
|||
logger = logging.getLogger(__name__) |
|||
|
|||
try: |
|||
from serial import Serial |
|||
except (ImportError, IOError) as err: |
|||
logger.debug(err) |
|||
|
|||
try: |
|||
import pycountry |
|||
EUR_CY_NBR = False |
|||
except (ImportError, IOError) as err: |
|||
logger.debug(err) |
|||
logger.warning( |
|||
'Unable to import pycountry, only EUR currency is supported') |
|||
EUR_CY_NBR = 978 |
|||
|
|||
|
|||
class TeliumPaymentTerminalDriver(Thread): |
|||
def __init__(self): |
|||
Thread.__init__(self) |
|||
self.queue = Queue() |
|||
self.lock = Lock() |
|||
self.status = {'status': 'connecting', 'messages': []} |
|||
self.device_name = config.get( |
|||
'telium_terminal_device_name', '/dev/ttyACM0') |
|||
self.device_rate = int(config.get( |
|||
'telium_terminal_device_rate', 9600)) |
|||
self.serial = False |
|||
|
|||
def get_status(self): |
|||
self.push_task('status') |
|||
return self.status |
|||
|
|||
def set_status(self, status, message=None): |
|||
if status == self.status['status']: |
|||
if message is not None and message != self.status['messages'][-1]: |
|||
self.status['messages'].append(message) |
|||
else: |
|||
self.status['status'] = status |
|||
if message: |
|||
self.status['messages'] = [message] |
|||
else: |
|||
self.status['messages'] = [] |
|||
|
|||
if status == 'error' and message: |
|||
logger.error('Payment Terminal Error: ' + message) |
|||
elif status == 'disconnected' and message: |
|||
logger.warning('Disconnected Terminal: ' + message) |
|||
|
|||
def lockedstart(self): |
|||
with self.lock: |
|||
if not self.is_alive(): |
|||
self.daemon = True |
|||
self.start() |
|||
|
|||
def push_task(self, task, data=None): |
|||
self.lockedstart() |
|||
self.queue.put((time.time(), task, data)) |
|||
|
|||
def serial_write(self, text): |
|||
assert isinstance(text, str), 'text must be a string' |
|||
raw = text.encode() |
|||
logger.debug("%s raw send to terminal" % raw) |
|||
logger.debug("%s send to terminal" % text) |
|||
self.serial.write(raw) |
|||
|
|||
def serial_read(self, size=1): |
|||
raw = self.serial.read(size) |
|||
msg = raw.decode('ascii') |
|||
logger.debug("%s raw received from terminal" % raw) |
|||
logger.debug("%s received from terminal" % msg) |
|||
return msg |
|||
|
|||
def initialize_msg(self): |
|||
max_attempt = 3 |
|||
attempt_nr = 0 |
|||
while attempt_nr < max_attempt: |
|||
attempt_nr += 1 |
|||
self.send_one_byte_signal('ENQ') |
|||
if self.get_one_byte_answer('ACK'): |
|||
return True |
|||
else: |
|||
logger.warning("Terminal : SAME PLAYER TRY AGAIN") |
|||
self.send_one_byte_signal('EOT') |
|||
# Wait 1 sec between each attempt |
|||
time.sleep(1) |
|||
return False |
|||
|
|||
def send_one_byte_signal(self, signal): |
|||
ascii_names = curses.ascii.controlnames |
|||
assert signal in ascii_names, 'Wrong signal' |
|||
char = ascii_names.index(signal) |
|||
self.serial_write(chr(char)) |
|||
logger.debug('Signal %s sent to terminal' % signal) |
|||
|
|||
def get_one_byte_answer(self, expected_signal): |
|||
assert isinstance(expected_signal, str), 'expected_signal must be a string' |
|||
ascii_names = curses.ascii.controlnames |
|||
one_byte_read = self.serial_read(1) |
|||
expected_char = ascii_names.index(expected_signal) |
|||
if one_byte_read == chr(expected_char): |
|||
return True |
|||
else: |
|||
return False |
|||
|
|||
def _get_amount(self, payment_info_dict): |
|||
amount = payment_info_dict['amount'] |
|||
cur_decimals = payment_info_dict['currency_decimals'] |
|||
cur_fact = 10 ** cur_decimals |
|||
return ('%.0f' % (amount * cur_fact)).zfill(8) |
|||
|
|||
def prepare_data_to_send(self, payment_info_dict): |
|||
if payment_info_dict['payment_mode'] == 'check': |
|||
payment_mode = 'C' |
|||
elif payment_info_dict['payment_mode'] == 'card': |
|||
payment_mode = '1' |
|||
else: |
|||
logger.error( |
|||
"The payment mode '%s' is not supported" |
|||
% payment_info_dict['payment_mode']) |
|||
return False |
|||
|
|||
cur_iso_letter = payment_info_dict['currency_iso'].upper() |
|||
try: |
|||
if EUR_CY_NBR: |
|||
cur_numeric = str(EUR_CY_NBR) |
|||
else: |
|||
cur = pycountry.currencies.get(alpha_3=cur_iso_letter) |
|||
cur_numeric = str(cur.numeric) |
|||
except: |
|||
logger.error("Currency %s is not recognized" % cur_iso_letter) |
|||
return False |
|||
data = { |
|||
'pos_number': str(1).zfill(2), |
|||
'answer_flag': '0', |
|||
'transaction_type': '0', |
|||
'payment_mode': payment_mode, |
|||
'currency_numeric': cur_numeric.zfill(3), |
|||
'private': ' ' * 10, |
|||
'delay': 'A010', |
|||
'auto': 'B010', |
|||
'amount_msg': self._get_amount(payment_info_dict), |
|||
} |
|||
return data |
|||
|
|||
def generate_lrc(self, real_msg_with_etx): |
|||
lrc = 0 |
|||
for char in real_msg_with_etx: |
|||
lrc ^= ord(char) |
|||
return lrc |
|||
|
|||
def send_message(self, data): |
|||
'''We use protocol E+''' |
|||
ascii_names = curses.ascii.controlnames |
|||
real_msg = ( |
|||
data['pos_number'] + |
|||
data['amount_msg'] + |
|||
data['answer_flag'] + |
|||
data['payment_mode'] + |
|||
data['transaction_type'] + |
|||
data['currency_numeric'] + |
|||
data['private'] + |
|||
data['delay'] + |
|||
data['auto']) |
|||
logger.debug('Real message to send = %s' % real_msg) |
|||
assert len(real_msg) == 34, 'Wrong length for protocol E+' |
|||
real_msg_with_etx = real_msg + chr(ascii_names.index('ETX')) |
|||
lrc = self.generate_lrc(real_msg_with_etx) |
|||
message = chr(ascii_names.index('STX')) + real_msg_with_etx + chr(lrc) |
|||
self.serial_write(message) |
|||
logger.info('Message sent to terminal') |
|||
|
|||
def compare_data_vs_answer(self, data, answer_data): |
|||
for field in ['pos_number', 'amount_msg', 'currency_numeric', 'private']: |
|||
if data[field] != answer_data[field]: |
|||
logger.warning( |
|||
"Field %s has value '%s' in data and value '%s' in answer" |
|||
% (field, data[field], answer_data[field])) |
|||
|
|||
def parse_terminal_answer(self, real_msg, data): |
|||
answer_data = { |
|||
'pos_number': real_msg[0:2], |
|||
'transaction_result': real_msg[2], |
|||
'amount_msg': real_msg[3:11], |
|||
'payment_mode': real_msg[11], |
|||
'currency_numeric': real_msg[12:15], |
|||
'private': real_msg[15:26], |
|||
} |
|||
logger.debug('answer_data = %s' % answer_data) |
|||
self.compare_data_vs_answer(data, answer_data) |
|||
return answer_data |
|||
|
|||
def get_answer_from_terminal(self, data): |
|||
ascii_names = curses.ascii.controlnames |
|||
full_msg_size = 1 + 2 + 1 + 8 + 1 + 3 + 10 + 1 + 1 |
|||
msg = self.serial_read(size=full_msg_size) |
|||
logger.debug('%d bytes read from terminal' % full_msg_size) |
|||
assert len(msg) == full_msg_size, 'Answer has a wrong size' |
|||
if msg[0] != chr(ascii_names.index('STX')): |
|||
logger.error( |
|||
'The first byte of the answer from terminal should be STX') |
|||
if msg[-2] != chr(ascii_names.index('ETX')): |
|||
logger.error( |
|||
'The byte before final of the answer from terminal ' |
|||
'should be ETX') |
|||
lrc = msg[-1] |
|||
computed_lrc = chr(self.generate_lrc(msg[1:-1])) |
|||
if computed_lrc != lrc: |
|||
logger.error( |
|||
'The LRC of the answer from terminal is wrong') |
|||
real_msg = msg[1:-2] |
|||
logger.debug('Real answer received = %s' % real_msg) |
|||
return self.parse_terminal_answer(real_msg, data) |
|||
|
|||
def transaction_start(self, payment_info): |
|||
'''This function sends the data to the serial/usb port. |
|||
''' |
|||
payment_info_dict = simplejson.loads(payment_info) |
|||
assert isinstance(payment_info_dict, dict), \ |
|||
'payment_info_dict should be a dict' |
|||
try: |
|||
logger.debug( |
|||
'Opening serial port %s for payment terminal with baudrate %d' |
|||
% (self.device_name, self.device_rate)) |
|||
# IMPORTANT : don't modify timeout=3 seconds |
|||
# This parameter is very important ; the Telium spec say |
|||
# that we have to wait to up 3 seconds to get LRC |
|||
self.serial = Serial( |
|||
self.device_name, self.device_rate, |
|||
timeout=3) |
|||
logger.debug('serial.is_open = %s' % self.serial.isOpen()) |
|||
|
|||
if self.serial.isOpen(): |
|||
self.set_status("connected", |
|||
"Connected to {} with baudrate {}".format( |
|||
self.device_name, self.device_rate)) |
|||
else: |
|||
self.set_status("disconnected", |
|||
"Could not connect to {}" |
|||
.format(self.device_name)) |
|||
|
|||
if self.initialize_msg(): |
|||
data = self.prepare_data_to_send(payment_info_dict) |
|||
if not data: |
|||
return |
|||
self.send_message(data) |
|||
if self.get_one_byte_answer('ACK'): |
|||
self.send_one_byte_signal('EOT') |
|||
|
|||
self.status['in_transaction'] = True |
|||
logger.debug("Now expecting answer from Terminal") |
|||
|
|||
# We wait the end of transaction |
|||
attempt_nr = 0 |
|||
while attempt_nr < 600: |
|||
attempt_nr += 1 |
|||
if self.get_one_byte_answer('ENQ'): |
|||
self.send_one_byte_signal('ACK') |
|||
answer = self.get_answer_from_terminal(data) |
|||
# '0' : accepted transaction |
|||
# '7' : refused transaction |
|||
if answer['transaction_result'] == '0' \ |
|||
and self._get_amount(payment_info_dict) == answer['amount_msg']: |
|||
self.status['latest_transactions'] = {payment_info_dict['order_id']: {}} |
|||
logger.info("Transaction OK") |
|||
self.send_one_byte_signal('ACK') |
|||
if self.get_one_byte_answer('EOT'): |
|||
logger.debug("Answer received from Terminal") |
|||
break |
|||
time.sleep(0.5) |
|||
self.status['in_transaction'] = False |
|||
|
|||
except Exception as e: |
|||
logger.error('Exception in serial connection: %s' % str(e)) |
|||
self.set_status("error", |
|||
"Exception in serial connection to {}" |
|||
.format(self.device_name)) |
|||
finally: |
|||
if self.serial: |
|||
logger.debug('Closing serial port for payment terminal') |
|||
self.serial.close() |
|||
|
|||
def run(self): |
|||
while True: |
|||
try: |
|||
timestamp, task, data = self.queue.get(True) |
|||
if task == 'transaction_start': |
|||
self.transaction_start(data) |
|||
elif task == 'status': |
|||
pass |
|||
except Exception as e: |
|||
self.set_status('error', str(e)) |
|||
|
|||
|
|||
driver = TeliumPaymentTerminalDriver() |
|||
|
|||
hw_proxy.drivers['telium_payment_terminal'] = driver |
|||
|
|||
|
|||
class TeliumPaymentTerminalProxy(hw_proxy.Proxy): |
|||
@http.route( |
|||
'/hw_proxy/payment_terminal_transaction_start', |
|||
type='json', auth='none', cors='*') |
|||
def payment_terminal_transaction_start(self, payment_info): |
|||
logger.debug( |
|||
'Telium: Call payment_terminal_transaction_start with ' |
|||
'payment_info=%s', payment_info) |
|||
driver.push_task('transaction_start', payment_info) |
@ -1,197 +0,0 @@ |
|||
#! /usr/bin/python3 |
|||
|
|||
from serial import Serial |
|||
import curses.ascii |
|||
import time |
|||
import pycountry |
|||
|
|||
|
|||
DEVICE = '/dev/ttyACM0' |
|||
DEVICE_RATE = 9600 |
|||
PAYMENT_MODE = 'card' # 'card' or 'check' |
|||
CURRENCY_ISO = 'EUR' |
|||
AMOUNT = 12.42 |
|||
|
|||
|
|||
def serial_write(serial, text): |
|||
assert isinstance(text, str), 'text must be a string' |
|||
serial.write(text.encode('ascii')) |
|||
|
|||
|
|||
def initialize_msg(serial): |
|||
max_attempt = 3 |
|||
attempt_nr = 0 |
|||
while attempt_nr < max_attempt: |
|||
attempt_nr += 1 |
|||
send_one_byte_signal(serial, 'ENQ') |
|||
if get_one_byte_answer(serial, 'ACK'): |
|||
return True |
|||
else: |
|||
print("Terminal : SAME PLAYER TRY AGAIN") |
|||
send_one_byte_signal(serial, 'EOT') |
|||
# Wait 1 sec between each attempt |
|||
time.sleep(1) |
|||
return False |
|||
|
|||
|
|||
def send_one_byte_signal(serial, signal): |
|||
ascii_names = curses.ascii.controlnames |
|||
assert signal in ascii_names, 'Wrong signal' |
|||
char = ascii_names.index(signal) |
|||
serial_write(serial, chr(char)) |
|||
print('Signal %s sent to terminal' % signal) |
|||
|
|||
|
|||
def get_one_byte_answer(serial, expected_signal): |
|||
ascii_names = curses.ascii.controlnames |
|||
one_byte_read = serial.read(1).decode('ascii') |
|||
expected_char = ascii_names.index(expected_signal) |
|||
if one_byte_read == chr(expected_char): |
|||
print("%s received from terminal" % expected_signal) |
|||
return True |
|||
else: |
|||
return False |
|||
|
|||
|
|||
def prepare_data_to_send(): |
|||
if PAYMENT_MODE == 'check': |
|||
payment_mode = 'C' |
|||
elif PAYMENT_MODE == 'card': |
|||
payment_mode = '1' |
|||
else: |
|||
print("The payment mode '%s' is not supported" % PAYMENT_MODE) |
|||
return False |
|||
cur_iso_letter = CURRENCY_ISO.upper() |
|||
try: |
|||
cur = pycountry.currencies.get(alpha_3=cur_iso_letter) |
|||
cur_numeric = str(cur.numeric) |
|||
except: |
|||
print("Currency %s is not recognized" % cur_iso_letter) |
|||
return False |
|||
data = { |
|||
'pos_number': str(1).zfill(2), |
|||
'answer_flag': '0', |
|||
'transaction_type': '0', |
|||
'payment_mode': payment_mode, |
|||
'currency_numeric': cur_numeric.zfill(3), |
|||
'private': ' ' * 10, |
|||
'delay': 'A011', |
|||
'auto': 'B010', |
|||
'amount_msg': ('%.0f' % (AMOUNT * 100)).zfill(8), |
|||
} |
|||
return data |
|||
|
|||
|
|||
def generate_lrc(real_msg_with_etx): |
|||
lrc = 0 |
|||
for char in real_msg_with_etx: |
|||
lrc ^= ord(char) |
|||
return lrc |
|||
|
|||
|
|||
def send_message(serial, data): |
|||
'''We use protocol E+''' |
|||
ascii_names = curses.ascii.controlnames |
|||
real_msg = ( |
|||
data['pos_number'] + |
|||
data['amount_msg'] + |
|||
data['answer_flag'] + |
|||
data['payment_mode'] + |
|||
data['transaction_type'] + |
|||
data['currency_numeric'] + |
|||
data['private'] + |
|||
data['delay'] + |
|||
data['auto']) |
|||
print('Real message to send = %s' % real_msg) |
|||
assert len(real_msg) == 34, 'Wrong length for protocol E+' |
|||
real_msg_with_etx = real_msg + chr(ascii_names.index('ETX')) |
|||
lrc = generate_lrc(real_msg_with_etx) |
|||
message = chr(ascii_names.index('STX')) + real_msg_with_etx + chr(lrc) |
|||
serial_write(serial, message) |
|||
print('Message sent to terminal') |
|||
|
|||
|
|||
def compare_data_vs_answer(data, answer_data): |
|||
for field in [ |
|||
'pos_number', 'amount_msg', |
|||
'currency_numeric', 'private']: |
|||
if data[field] != answer_data[field]: |
|||
print( |
|||
"Field %s has value '%s' in data and value '%s' in answer" |
|||
% (field, data[field], answer_data[field])) |
|||
|
|||
|
|||
def parse_terminal_answer(real_msg, data): |
|||
answer_data = { |
|||
'pos_number': real_msg[0:2], |
|||
'transaction_result': real_msg[2], |
|||
'amount_msg': real_msg[3:11], |
|||
'payment_mode': real_msg[11], |
|||
'currency_numeric': real_msg[12:15], |
|||
'private': real_msg[15:26], |
|||
} |
|||
print('answer_data = %s' % answer_data) |
|||
compare_data_vs_answer(data, answer_data) |
|||
return answer_data |
|||
|
|||
|
|||
def get_answer_from_terminal(serial, data): |
|||
ascii_names = curses.ascii.controlnames |
|||
full_msg_size = 1+2+1+8+1+3+10+1+1 |
|||
msg = serial.read(size=full_msg_size).decode('ascii') |
|||
print('%d bytes read from terminal' % full_msg_size) |
|||
assert len(msg) == full_msg_size, 'Answer has a wrong size' |
|||
if msg[0] != chr(ascii_names.index('STX')): |
|||
print('The first byte of the answer from terminal should be STX') |
|||
if msg[-2] != chr(ascii_names.index('ETX')): |
|||
print('The byte before final of the answer ' |
|||
'from terminal should be ETX') |
|||
lrc = msg[-1] |
|||
computed_lrc = chr(generate_lrc(msg[1:-1])) |
|||
if computed_lrc != lrc: |
|||
print('The LRC of the answer from terminal is wrong') |
|||
real_msg = msg[1:-2] |
|||
print('Real answer received = %s' % real_msg) |
|||
return parse_terminal_answer(real_msg, data) |
|||
|
|||
|
|||
def transaction_start(): |
|||
'''This function sends the data to the serial/usb port. |
|||
''' |
|||
serial = False |
|||
try: |
|||
print( |
|||
'Opening serial port %s for payment terminal with ' |
|||
'baudrate %d' % (DEVICE, DEVICE_RATE)) |
|||
# IMPORTANT : don't modify timeout=3 seconds |
|||
# This parameter is very important ; the Telium spec say |
|||
# that we have to wait to up 3 seconds to get LRC |
|||
serial = Serial( |
|||
DEVICE, DEVICE_RATE, timeout=3) |
|||
print('serial.is_open = %s' % serial.isOpen()) |
|||
if initialize_msg(serial): |
|||
data = prepare_data_to_send() |
|||
if not data: |
|||
return |
|||
send_message(serial, data) |
|||
if get_one_byte_answer(serial, 'ACK'): |
|||
send_one_byte_signal(serial, 'EOT') |
|||
|
|||
print("Now expecting answer from Terminal") |
|||
if get_one_byte_answer(serial, 'ENQ'): |
|||
send_one_byte_signal(serial, 'ACK') |
|||
get_answer_from_terminal(serial, data) |
|||
send_one_byte_signal(serial, 'ACK') |
|||
if get_one_byte_answer(serial, 'EOT'): |
|||
print("Answer received from Terminal") |
|||
|
|||
except Exception as e: |
|||
print('Exception in serial connection: %s' % str(e)) |
|||
finally: |
|||
if serial: |
|||
print('Closing serial port for payment terminal') |
|||
serial.close() |
|||
|
|||
|
|||
if __name__ == '__main__': |
|||
transaction_start() |
@ -1,4 +1,2 @@ |
|||
account-payment |
|||
queue |
|||
stock-logistics-workflow |
|||
partner-contact |
|||
stock-logistics-barcode |
@ -1,88 +0,0 @@ |
|||
======================================= |
|||
Point of Sale - Accented Product Search |
|||
======================================= |
|||
|
|||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
!! This file is generated by oca-gen-addon-readme !! |
|||
!! changes will be overwritten. !! |
|||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
|
|||
.. |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/12.0/pos_accented_search |
|||
:alt: OCA/pos |
|||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png |
|||
:target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_accented_search |
|||
:alt: Translate me on Weblate |
|||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png |
|||
:target: https://runbot.odoo-community.org/runbot/184/12.0 |
|||
:alt: Try me on Runbot |
|||
|
|||
|badge1| |badge2| |badge3| |badge4| |badge5| |
|||
|
|||
This add-on makes pos product search insensitive to accented characters in the product |
|||
name. For instance, café will match both cafe and café. |
|||
|
|||
**Table of contents** |
|||
|
|||
.. contents:: |
|||
:local: |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
Simply install the addon and enjoy product search working regardless of the accented characters in the product name. |
|||
|
|||
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 smashing it by providing a detailed and welcomed |
|||
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_accented_search%0Aversion:%2012.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 |
|||
~~~~~~~ |
|||
|
|||
* Le Nid |
|||
|
|||
Contributors |
|||
~~~~~~~~~~~~ |
|||
|
|||
- Le Nid |
|||
- CoopITEasy |
|||
|
|||
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-fkawala| image:: https://github.com/fkawala.png?size=40px |
|||
:target: https://github.com/fkawala |
|||
:alt: fkawala |
|||
|
|||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: |
|||
|
|||
|maintainer-fkawala| |
|||
|
|||
This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/12.0/pos_accented_search>`_ project on GitHub. |
|||
|
|||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
@ -1,18 +0,0 @@ |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
{ |
|||
'name': "Point of Sale - Accented Product Search", |
|||
'version': '12.0.1.0.1', |
|||
'category': 'Point of Sale', |
|||
'summary': 'Point of Sale - Product search works regardless of accented characters', |
|||
'author': "Le Nid, Odoo Community Association (OCA)", |
|||
'website': "https://github.com/OCA/pos", |
|||
'license': 'AGPL-3', |
|||
'maintainers': ['fkawala'], |
|||
'depends': [ |
|||
'point_of_sale', |
|||
], |
|||
'data': [ |
|||
'views/templates.xml', |
|||
], |
|||
'installable': True, |
|||
} |
@ -1,14 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 12.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"Last-Translator: Automatically generated\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" |
@ -1,14 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 12.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" |
|||
|
@ -1,2 +0,0 @@ |
|||
- Le Nid |
|||
- CoopITEasy |
@ -1,2 +0,0 @@ |
|||
This add-on makes pos product search insensitive to accented characters in the product |
|||
name. For instance, café will match both cafe and café. |
@ -1 +0,0 @@ |
|||
Simply install the addon and enjoy product search working regardless of the accented characters in the product name. |
@ -1,428 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|||
<head> |
|||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" /> |
|||
<title>Point of Sale - Accented Product Search</title> |
|||
<style type="text/css"> |
|||
|
|||
/* |
|||
:Author: David Goodger (goodger@python.org) |
|||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $ |
|||
:Copyright: This stylesheet has been placed in the public domain. |
|||
|
|||
Default cascading style sheet for the HTML output of Docutils. |
|||
|
|||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to |
|||
customize this style sheet. |
|||
*/ |
|||
|
|||
/* used to remove borders from tables and images */ |
|||
.borderless, table.borderless td, table.borderless th { |
|||
border: 0 } |
|||
|
|||
table.borderless td, table.borderless th { |
|||
/* Override padding for "table.docutils td" with "! important". |
|||
The right padding separates the table cells. */ |
|||
padding: 0 0.5em 0 0 ! important } |
|||
|
|||
.first { |
|||
/* Override more specific margin styles with "! important". */ |
|||
margin-top: 0 ! important } |
|||
|
|||
.last, .with-subtitle { |
|||
margin-bottom: 0 ! important } |
|||
|
|||
.hidden { |
|||
display: none } |
|||
|
|||
.subscript { |
|||
vertical-align: sub; |
|||
font-size: smaller } |
|||
|
|||
.superscript { |
|||
vertical-align: super; |
|||
font-size: smaller } |
|||
|
|||
a.toc-backref { |
|||
text-decoration: none ; |
|||
color: black } |
|||
|
|||
blockquote.epigraph { |
|||
margin: 2em 5em ; } |
|||
|
|||
dl.docutils dd { |
|||
margin-bottom: 0.5em } |
|||
|
|||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { |
|||
overflow: hidden; |
|||
} |
|||
|
|||
/* Uncomment (and remove this text!) to get bold-faced definition list terms |
|||
dl.docutils dt { |
|||
font-weight: bold } |
|||
*/ |
|||
|
|||
div.abstract { |
|||
margin: 2em 5em } |
|||
|
|||
div.abstract p.topic-title { |
|||
font-weight: bold ; |
|||
text-align: center } |
|||
|
|||
div.admonition, div.attention, div.caution, div.danger, div.error, |
|||
div.hint, div.important, div.note, div.tip, div.warning { |
|||
margin: 2em ; |
|||
border: medium outset ; |
|||
padding: 1em } |
|||
|
|||
div.admonition p.admonition-title, div.hint p.admonition-title, |
|||
div.important p.admonition-title, div.note p.admonition-title, |
|||
div.tip p.admonition-title { |
|||
font-weight: bold ; |
|||
font-family: sans-serif } |
|||
|
|||
div.attention p.admonition-title, div.caution p.admonition-title, |
|||
div.danger p.admonition-title, div.error p.admonition-title, |
|||
div.warning p.admonition-title, .code .error { |
|||
color: red ; |
|||
font-weight: bold ; |
|||
font-family: sans-serif } |
|||
|
|||
/* Uncomment (and remove this text!) to get reduced vertical space in |
|||
compound paragraphs. |
|||
div.compound .compound-first, div.compound .compound-middle { |
|||
margin-bottom: 0.5em } |
|||
|
|||
div.compound .compound-last, div.compound .compound-middle { |
|||
margin-top: 0.5em } |
|||
*/ |
|||
|
|||
div.dedication { |
|||
margin: 2em 5em ; |
|||
text-align: center ; |
|||
font-style: italic } |
|||
|
|||
div.dedication p.topic-title { |
|||
font-weight: bold ; |
|||
font-style: normal } |
|||
|
|||
div.figure { |
|||
margin-left: 2em ; |
|||
margin-right: 2em } |
|||
|
|||
div.footer, div.header { |
|||
clear: both; |
|||
font-size: smaller } |
|||
|
|||
div.line-block { |
|||
display: block ; |
|||
margin-top: 1em ; |
|||
margin-bottom: 1em } |
|||
|
|||
div.line-block div.line-block { |
|||
margin-top: 0 ; |
|||
margin-bottom: 0 ; |
|||
margin-left: 1.5em } |
|||
|
|||
div.sidebar { |
|||
margin: 0 0 0.5em 1em ; |
|||
border: medium outset ; |
|||
padding: 1em ; |
|||
background-color: #ffffee ; |
|||
width: 40% ; |
|||
float: right ; |
|||
clear: right } |
|||
|
|||
div.sidebar p.rubric { |
|||
font-family: sans-serif ; |
|||
font-size: medium } |
|||
|
|||
div.system-messages { |
|||
margin: 5em } |
|||
|
|||
div.system-messages h1 { |
|||
color: red } |
|||
|
|||
div.system-message { |
|||
border: medium outset ; |
|||
padding: 1em } |
|||
|
|||
div.system-message p.system-message-title { |
|||
color: red ; |
|||
font-weight: bold } |
|||
|
|||
div.topic { |
|||
margin: 2em } |
|||
|
|||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, |
|||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { |
|||
margin-top: 0.4em } |
|||
|
|||
h1.title { |
|||
text-align: center } |
|||
|
|||
h2.subtitle { |
|||
text-align: center } |
|||
|
|||
hr.docutils { |
|||
width: 75% } |
|||
|
|||
img.align-left, .figure.align-left, object.align-left, table.align-left { |
|||
clear: left ; |
|||
float: left ; |
|||
margin-right: 1em } |
|||
|
|||
img.align-right, .figure.align-right, object.align-right, table.align-right { |
|||
clear: right ; |
|||
float: right ; |
|||
margin-left: 1em } |
|||
|
|||
img.align-center, .figure.align-center, object.align-center { |
|||
display: block; |
|||
margin-left: auto; |
|||
margin-right: auto; |
|||
} |
|||
|
|||
table.align-center { |
|||
margin-left: auto; |
|||
margin-right: auto; |
|||
} |
|||
|
|||
.align-left { |
|||
text-align: left } |
|||
|
|||
.align-center { |
|||
clear: both ; |
|||
text-align: center } |
|||
|
|||
.align-right { |
|||
text-align: right } |
|||
|
|||
/* reset inner alignment in figures */ |
|||
div.align-right { |
|||
text-align: inherit } |
|||
|
|||
/* div.align-center * { */ |
|||
/* text-align: left } */ |
|||
|
|||
.align-top { |
|||
vertical-align: top } |
|||
|
|||
.align-middle { |
|||
vertical-align: middle } |
|||
|
|||
.align-bottom { |
|||
vertical-align: bottom } |
|||
|
|||
ol.simple, ul.simple { |
|||
margin-bottom: 1em } |
|||
|
|||
ol.arabic { |
|||
list-style: decimal } |
|||
|
|||
ol.loweralpha { |
|||
list-style: lower-alpha } |
|||
|
|||
ol.upperalpha { |
|||
list-style: upper-alpha } |
|||
|
|||
ol.lowerroman { |
|||
list-style: lower-roman } |
|||
|
|||
ol.upperroman { |
|||
list-style: upper-roman } |
|||
|
|||
p.attribution { |
|||
text-align: right ; |
|||
margin-left: 50% } |
|||
|
|||
p.caption { |
|||
font-style: italic } |
|||
|
|||
p.credits { |
|||
font-style: italic ; |
|||
font-size: smaller } |
|||
|
|||
p.label { |
|||
white-space: nowrap } |
|||
|
|||
p.rubric { |
|||
font-weight: bold ; |
|||
font-size: larger ; |
|||
color: maroon ; |
|||
text-align: center } |
|||
|
|||
p.sidebar-title { |
|||
font-family: sans-serif ; |
|||
font-weight: bold ; |
|||
font-size: larger } |
|||
|
|||
p.sidebar-subtitle { |
|||
font-family: sans-serif ; |
|||
font-weight: bold } |
|||
|
|||
p.topic-title { |
|||
font-weight: bold } |
|||
|
|||
pre.address { |
|||
margin-bottom: 0 ; |
|||
margin-top: 0 ; |
|||
font: inherit } |
|||
|
|||
pre.literal-block, pre.doctest-block, pre.math, pre.code { |
|||
margin-left: 2em ; |
|||
margin-right: 2em } |
|||
|
|||
pre.code .ln { color: grey; } /* line numbers */ |
|||
pre.code, code { background-color: #eeeeee } |
|||
pre.code .comment, code .comment { color: #5C6576 } |
|||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } |
|||
pre.code .literal.string, code .literal.string { color: #0C5404 } |
|||
pre.code .name.builtin, code .name.builtin { color: #352B84 } |
|||
pre.code .deleted, code .deleted { background-color: #DEB0A1} |
|||
pre.code .inserted, code .inserted { background-color: #A3D289} |
|||
|
|||
span.classifier { |
|||
font-family: sans-serif ; |
|||
font-style: oblique } |
|||
|
|||
span.classifier-delimiter { |
|||
font-family: sans-serif ; |
|||
font-weight: bold } |
|||
|
|||
span.interpreted { |
|||
font-family: sans-serif } |
|||
|
|||
span.option { |
|||
white-space: nowrap } |
|||
|
|||
span.pre { |
|||
white-space: pre } |
|||
|
|||
span.problematic { |
|||
color: red } |
|||
|
|||
span.section-subtitle { |
|||
/* font-size relative to parent (h1..h6 element) */ |
|||
font-size: 80% } |
|||
|
|||
table.citation { |
|||
border-left: solid 1px gray; |
|||
margin-left: 1px } |
|||
|
|||
table.docinfo { |
|||
margin: 2em 4em } |
|||
|
|||
table.docutils { |
|||
margin-top: 0.5em ; |
|||
margin-bottom: 0.5em } |
|||
|
|||
table.footnote { |
|||
border-left: solid 1px black; |
|||
margin-left: 1px } |
|||
|
|||
table.docutils td, table.docutils th, |
|||
table.docinfo td, table.docinfo th { |
|||
padding-left: 0.5em ; |
|||
padding-right: 0.5em ; |
|||
vertical-align: top } |
|||
|
|||
table.docutils th.field-name, table.docinfo th.docinfo-name { |
|||
font-weight: bold ; |
|||
text-align: left ; |
|||
white-space: nowrap ; |
|||
padding-left: 0 } |
|||
|
|||
/* "booktabs" style (no vertical lines) */ |
|||
table.docutils.booktabs { |
|||
border: 0px; |
|||
border-top: 2px solid; |
|||
border-bottom: 2px solid; |
|||
border-collapse: collapse; |
|||
} |
|||
table.docutils.booktabs * { |
|||
border: 0px; |
|||
} |
|||
table.docutils.booktabs th { |
|||
border-bottom: thin solid; |
|||
text-align: left; |
|||
} |
|||
|
|||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, |
|||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { |
|||
font-size: 100% } |
|||
|
|||
ul.auto-toc { |
|||
list-style-type: none } |
|||
|
|||
</style> |
|||
</head> |
|||
<body> |
|||
<div class="document" id="point-of-sale-accented-product-search"> |
|||
<h1 class="title">Point of Sale - Accented Product Search</h1> |
|||
|
|||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
!! This file is generated by oca-gen-addon-readme !! |
|||
!! changes will be overwritten. !! |
|||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> |
|||
<p><a class="reference external" 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" 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" href="https://github.com/OCA/pos/tree/12.0/pos_accented_search"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_accented_search"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/184/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> |
|||
<p>This add-on makes pos product search insensitive to accented characters in the product |
|||
name. For instance, café will match both cafe and café.</p> |
|||
<p><strong>Table of contents</strong></p> |
|||
<div class="contents local topic" id="contents"> |
|||
<ul class="simple"> |
|||
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li> |
|||
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li> |
|||
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul> |
|||
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li> |
|||
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li> |
|||
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li> |
|||
</ul> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
<div class="section" id="usage"> |
|||
<h1><a class="toc-backref" href="#id1">Usage</a></h1> |
|||
<p>Simply install the addon and enjoy product search working regardless of the accented characters in the product name.</p> |
|||
</div> |
|||
<div class="section" id="bug-tracker"> |
|||
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1> |
|||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/pos/issues">GitHub Issues</a>. |
|||
In case of trouble, please check there if your issue has already been reported. |
|||
If you spotted it first, help us smashing it by providing a detailed and welcomed |
|||
<a class="reference external" href="https://github.com/OCA/pos/issues/new?body=module:%20pos_accented_search%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> |
|||
<p>Do not contact contributors directly about support or help with technical issues.</p> |
|||
</div> |
|||
<div class="section" id="credits"> |
|||
<h1><a class="toc-backref" href="#id3">Credits</a></h1> |
|||
<div class="section" id="authors"> |
|||
<h2><a class="toc-backref" href="#id4">Authors</a></h2> |
|||
<ul class="simple"> |
|||
<li>Le Nid</li> |
|||
</ul> |
|||
</div> |
|||
<div class="section" id="contributors"> |
|||
<h2><a class="toc-backref" href="#id5">Contributors</a></h2> |
|||
<ul class="simple"> |
|||
<li>Le Nid</li> |
|||
<li>CoopITEasy</li> |
|||
</ul> |
|||
</div> |
|||
<div class="section" id="maintainers"> |
|||
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2> |
|||
<p>This module is maintained by the OCA.</p> |
|||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> |
|||
<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">maintainer</a>:</p> |
|||
<p><a class="reference external" href="https://github.com/fkawala"><img alt="fkawala" src="https://github.com/fkawala.png?size=40px" /></a></p> |
|||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/pos/tree/12.0/pos_accented_search">OCA/pos</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> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
</html> |
@ -1,29 +0,0 @@ |
|||
odoo.define('pos_accented_search', function (require) { |
|||
|
|||
"use strict"; |
|||
var db = require("point_of_sale.DB"); |
|||
db.include({ |
|||
|
|||
normalize_characters: function (product) { |
|||
// The normalization extract out combining diacritical marks
|
|||
// All those diacritics in range [\u0300-\u036f].
|
|||
// See https://en.wikipedia.org/wiki/Combining_Diacritical_Marks.
|
|||
// All the diacritics are removed by the code below.
|
|||
return product.normalize("NFD") |
|||
.replace(/[\u0300-\u036f]/g, "") |
|||
.replace(/[\u0152-\u0153]/g, "oe"); |
|||
}, |
|||
|
|||
_product_search_string: function (product) { |
|||
return this.normalize_characters(this._super(product)); |
|||
}, |
|||
|
|||
search_product_in_category: function (category_id, query) { |
|||
return this._super(category_id, this.normalize_characters(query)); |
|||
}, |
|||
}); |
|||
|
|||
return db; |
|||
|
|||
}); |
|||
|
@ -1,7 +0,0 @@ |
|||
<odoo> |
|||
<template id="assets_backend" name="pos_accented_search" inherit_id="point_of_sale.assets"> |
|||
<xpath expr="." position="inside"> |
|||
<script type="text/javascript" src="/pos_accented_search/static/src/js/db.js"></script> |
|||
</xpath> |
|||
</template> |
|||
</odoo> |
@ -1,92 +0,0 @@ |
|||
================================== |
|||
Point of Sale - Extra Access Right |
|||
================================== |
|||
|
|||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
!! This file is generated by oca-gen-addon-readme !! |
|||
!! changes will be overwritten. !! |
|||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
|
|||
.. |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/12.0/pos_access_right |
|||
:alt: OCA/pos |
|||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png |
|||
:target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_access_right |
|||
:alt: Translate me on Weblate |
|||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png |
|||
:target: https://runbot.odoo-community.org/runbot/184/12.0 |
|||
:alt: Try me on Runbot |
|||
|
|||
|badge1| |badge2| |badge3| |badge4| |badge5| |
|||
|
|||
This module extends Odoo Point Of Sale features, restricting possibility to cashier to make some actions in the Point of Sale. This module will add the following groups to Odoo: |
|||
|
|||
* **PoS - Negative Quantity**: The cashier can sell negative quantity in Point Of Sale (ie, can return products); |
|||
* **PoS - Discount**: The cashier can set Discount in Point Of Sale; |
|||
* **PoS - Change Unit Price**: The cashier can change the unit price of a product in Point Of Sale; |
|||
* **PoS - Many Orders**: The cashier can many orders at the same time; |
|||
* **PoS - Delete Order**: The cashier can not delete a full order; |
|||
|
|||
**Table of contents** |
|||
|
|||
.. contents:: |
|||
:local: |
|||
|
|||
Configuration |
|||
============= |
|||
|
|||
Once installed, you have to give correct access right to your cashiers. |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas |
|||
:alt: Try me on Runbot |
|||
:target: https://runbot.odoo-community.org/runbot/184/9.0 |
|||
|
|||
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 smashing it by providing a detailed and welcomed |
|||
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_access_right%0Aversion:%2012.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 |
|||
~~~~~~~ |
|||
|
|||
* La Louve |
|||
* 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. |
|||
|
|||
This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/12.0/pos_access_right>`_ project on GitHub. |
|||
|
|||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
@ -1,24 +0,0 @@ |
|||
# Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>) |
|||
# @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 - Extra Access Right', |
|||
'version': '12.0.1.0.1', |
|||
'category': 'Point Of Sale', |
|||
'summary': 'Point of Sale - Extra Access Right for certain actions', |
|||
'author': 'La Louve, GRAP, Odoo Community Association (OCA)', |
|||
'website': 'http://www.github.com/OCA/pos', |
|||
'license': 'AGPL-3', |
|||
'depends': [ |
|||
'point_of_sale', |
|||
], |
|||
'data': [ |
|||
'security/res_groups.xml', |
|||
'static/src/xml/templates.xml', |
|||
], |
|||
'demo': [ |
|||
'demo/res_groups.xml', |
|||
], |
|||
'installable': True, |
|||
} |
@ -1,33 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- |
|||
Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>) |
|||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
--> |
|||
<odoo> |
|||
|
|||
<record id="group_negative_qty" model="res.groups"> |
|||
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> |
|||
</record> |
|||
|
|||
<record id="group_discount" model="res.groups"> |
|||
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin')), (4, ref('base.user_demo'))]"/> |
|||
</record> |
|||
|
|||
<record id="group_change_unit_price" model="res.groups"> |
|||
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> |
|||
</record> |
|||
|
|||
<record id="group_multi_order" model="res.groups"> |
|||
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> |
|||
</record> |
|||
|
|||
<record id="group_delete_order" model="res.groups"> |
|||
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> |
|||
</record> |
|||
|
|||
<record id="group_payment" model="res.groups"> |
|||
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> |
|||
</record> |
|||
|
|||
</odoo> |
@ -1,155 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_access_right |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 12.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"PO-Revision-Date: 2019-10-21 18:32+0000\n" |
|||
"Last-Translator: Osoul <baruni@osoul.ly>\n" |
|||
"Language-Team: none\n" |
|||
"Language: ar\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " |
|||
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" |
|||
"X-Generator: Weblate 3.8\n" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:142 |
|||
#, python-format |
|||
msgid "Change Unit Price - Unauthorized function" |
|||
msgstr "تغيير سعر البيع - ليس لديك صلاحية" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:87 |
|||
#, python-format |
|||
msgid "Delete Order - Unauthorized function" |
|||
msgstr "حذف أمر مبيعات - ليس لديك صلاحية" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:135 |
|||
#, python-format |
|||
msgid "Discount - Unauthorized function" |
|||
msgstr "تخفيض - ليس لديك صلاحية" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:70 |
|||
#, python-format |
|||
msgid "Many Orders - Unauthorized function" |
|||
msgstr "تعدد أوامر مبيعات - ليس لديك صلاحية" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:115 |
|||
#, python-format |
|||
msgid "Negative Quantity - Unauthorized function" |
|||
msgstr "كمية بالسالب - ليس لديك صلاحية" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:166 |
|||
#, python-format |
|||
msgid "Payment - Unauthorized function" |
|||
msgstr "الدفع - ليس لديك صلاحية" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:71 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:88 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:116 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:136 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:143 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:167 |
|||
#, python-format |
|||
msgid "Please ask your manager to do it." |
|||
msgstr "قم بطلب مساعدة من المشرف." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_discount_id |
|||
msgid "Point of Sale - Allow Discount" |
|||
msgstr "نقاط البيع - السماح بالتخفيض" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_negative_qty_id |
|||
msgid "Point of Sale - Allow Negative Quantity" |
|||
msgstr "نقاط البيع - السماح بالكمية بالسالب" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_change_unit_price_id |
|||
msgid "Point of Sale - Allow Unit Price Change" |
|||
msgstr "نقاط البيع - السماح بتغير سعر البيع" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_delete_order_id |
|||
#: model:res.groups,name:pos_access_right.group_delete_order |
|||
msgid "Point of Sale - Delete Order" |
|||
msgstr "نقاط البيع - السماح بحذف أمر مبيعات" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_discount |
|||
msgid "Point of Sale - Discount" |
|||
msgstr "نقاط البيع - التخفيض" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_multi_order_id |
|||
#: model:res.groups,name:pos_access_right.group_multi_order |
|||
msgid "Point of Sale - Many Orders" |
|||
msgstr "نقاط البيع - تعدد أوامر المبيعات" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_negative_qty |
|||
msgid "Point of Sale - Negative Quantity" |
|||
msgstr "نقاط البيع - الكمية بالسالب" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_payment_id |
|||
#: model:res.groups,name:pos_access_right.group_payment |
|||
msgid "Point of Sale - Payment" |
|||
msgstr "نقاط البيع - الدفع" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_change_unit_price |
|||
msgid "Point of Sale - Unit Price Change" |
|||
msgstr "نقاط البيع - تغيير سعر البيع" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model,name:pos_access_right.model_pos_config |
|||
msgid "Point of Sale Configuration" |
|||
msgstr "إعدادات نقاط البيع" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_discount_id |
|||
msgid "This field is there to pass the id of the 'PoS - Allow Discount' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_negative_qty_id |
|||
msgid "This field is there to pass the id of the 'PoS - Allow Negative Quantity' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_change_unit_price_id |
|||
msgid "This field is there to pass the id of the 'PoS - Allow Unit Price Change' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_delete_order_id |
|||
msgid "This field is there to pass the id of the 'PoS - Delete Order' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_multi_order_id |
|||
msgid "This field is there to pass the id of the 'PoS - Many Orders Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_payment_id |
|||
msgid "This field is there to pass the id of the 'PoS - Payment' Group to the Point of Sale Frontend." |
|||
msgstr "" |
@ -1,184 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_access_right |
|||
# |
|||
# Translators: |
|||
# Marc Tormo i Bochaca <mtbochaca@gmail.com>, 2017 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 9.0c\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2017-03-28 05:50+0000\n" |
|||
"PO-Revision-Date: 2019-12-05 09:04+0000\n" |
|||
"Last-Translator: mtbochaca <mtbochaca@gmail.com>\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" |
|||
"X-Generator: Weblate 3.9.1\n" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:142 |
|||
#, python-format |
|||
msgid "Change Unit Price - Unauthorized function" |
|||
msgstr "Canviar preu unitari - Funció no autoritzada" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:87 |
|||
#, python-format |
|||
msgid "Delete Order - Unauthorized function" |
|||
msgstr "Esborrar comanda - Funció no autoritzada" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:135 |
|||
#, python-format |
|||
msgid "Discount - Unauthorized function" |
|||
msgstr "Descomptes - Funció no autoritzada" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:70 |
|||
#, python-format |
|||
msgid "Many Orders - Unauthorized function" |
|||
msgstr "Múltiples Comandes - Funció no autoritzada" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:115 |
|||
#, python-format |
|||
msgid "Negative Quantity - Unauthorized function" |
|||
msgstr "Quantitat Negativa - Funció no autoritzada" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:166 |
|||
#, python-format |
|||
msgid "Payment - Unauthorized function" |
|||
msgstr "Pagament - Funció no autoritzada" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:71 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:88 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:116 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:136 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:143 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:167 |
|||
#, python-format |
|||
msgid "Please ask your manager to do it." |
|||
msgstr "Si us plau, pregunti al seu administrador per fer-ho." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_discount_id |
|||
msgid "Point of Sale - Allow Discount" |
|||
msgstr "Punt de Venda - Permetre Descomptes" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_negative_qty_id |
|||
msgid "Point of Sale - Allow Negative Quantity" |
|||
msgstr "Punt de Venda - Permetre quantitats negatives" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_change_unit_price_id |
|||
msgid "Point of Sale - Allow Unit Price Change" |
|||
msgstr "Punt de Venda - Permetre canviar el preu de venda" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_delete_order_id |
|||
#: model:res.groups,name:pos_access_right.group_delete_order |
|||
msgid "Point of Sale - Delete Order" |
|||
msgstr "Punt de Venda - Esborrar comandes" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_discount |
|||
msgid "Point of Sale - Discount" |
|||
msgstr "Punt de Venda - Descomptes" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_multi_order_id |
|||
#: model:res.groups,name:pos_access_right.group_multi_order |
|||
msgid "Point of Sale - Many Orders" |
|||
msgstr "Punt de Venda - Múltiples Comandes" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_negative_qty |
|||
msgid "Point of Sale - Negative Quantity" |
|||
msgstr "Punt de Venda - Quantitats negatives" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_payment_id |
|||
#: model:res.groups,name:pos_access_right.group_payment |
|||
msgid "Point of Sale - Payment" |
|||
msgstr "Punt de Venda - Pagament" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_change_unit_price |
|||
msgid "Point of Sale - Unit Price Change" |
|||
msgstr "Punt de Venda - Canviar preu unitari" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model,name:pos_access_right.model_pos_config |
|||
msgid "Point of Sale Configuration" |
|||
msgstr "Configuració del Punt de Venda" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_discount_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Allow Discount' Group to " |
|||
"the Point of Sale Frontend." |
|||
msgstr "" |
|||
"Aquest camp està aquí per passar el ID del grup 'TPV - Permetre Descomptes' " |
|||
"cap a la pantalla del Punt de Venda." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_negative_qty_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Allow Negative Quantity' " |
|||
"Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
"Aquest camp està aquí per passar el ID del grup 'TPV - Permetre Quantitats " |
|||
"Negatives' cap a la pantalla del Punt de Venda." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_change_unit_price_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Allow Unit Price Change' " |
|||
"Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
"Aquest camp està aquí per passar el ID del grup 'TPV - Canviar Preu Unitari' " |
|||
"cap a la pantalla del Punt de Venda." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_delete_order_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Delete Order' Group to the " |
|||
"Point of Sale Frontend." |
|||
msgstr "" |
|||
"Aquest camp està aquí per passar el ID del grup 'TPV - Esborrar Comanda' cap " |
|||
"a la pantalla del Punt de Venda." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_multi_order_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Many Orders Group to the " |
|||
"Point of Sale Frontend." |
|||
msgstr "" |
|||
"Aquest camp està aquí per passar el ID del grup 'TPV - Múltiples Comandes' " |
|||
"cap a la pantalla del Punt de Venda." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_payment_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Payment' Group to the Point " |
|||
"of Sale Frontend." |
|||
msgstr "" |
|||
"Aquest camp està aquí per passar el ID del grup 'TPV - Pagaments' cap a la " |
|||
"pantalla del Punt de Venda." |
|||
|
|||
#~ msgid "pos.config" |
|||
#~ msgstr "pos.config" |
@ -1,166 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_access_right |
|||
# |
|||
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_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:142 |
|||
#, python-format |
|||
msgid "Change Unit Price - Unauthorized function" |
|||
msgstr "Cambiar precio unitario - Función no autorizada" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:87 |
|||
#, python-format |
|||
msgid "Delete Order - Unauthorized function" |
|||
msgstr "Eliminar orden - Función no autorizada" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:135 |
|||
#, python-format |
|||
msgid "Discount - Unauthorized function" |
|||
msgstr "Descuento - Función no autorizada" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:70 |
|||
#, python-format |
|||
msgid "Many Orders - Unauthorized function" |
|||
msgstr "Muchas órdenes - Función no autorizada" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:115 |
|||
#, python-format |
|||
msgid "Negative Quantity - Unauthorized function" |
|||
msgstr "Cantidad negativa- Función no autorizada" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:166 |
|||
#, python-format |
|||
msgid "Payment - Unauthorized function" |
|||
msgstr "Pago - Función no autorizada" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:71 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:88 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:116 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:136 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:143 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:167 |
|||
#, python-format |
|||
msgid "Please ask your manager to do it." |
|||
msgstr "Pídale a su gerente que lo haga." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_discount_id |
|||
msgid "Point of Sale - Allow Discount" |
|||
msgstr "Punto de venta - Permitir descuento" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_negative_qty_id |
|||
msgid "Point of Sale - Allow Negative Quantity" |
|||
msgstr "Punto de venta - Permitir cantidad negativa" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_change_unit_price_id |
|||
msgid "Point of Sale - Allow Unit Price Change" |
|||
msgstr "Punto de venta - Permitir cambio de precio unitario" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_delete_order_id |
|||
#: model:res.groups,name:pos_access_right.group_delete_order |
|||
msgid "Point of Sale - Delete Order" |
|||
msgstr "Punto de venta - Eliminar pedido" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_discount |
|||
msgid "Point of Sale - Discount" |
|||
msgstr "Punto de Venta - Descuento" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_multi_order_id |
|||
#: model:res.groups,name:pos_access_right.group_multi_order |
|||
msgid "Point of Sale - Many Orders" |
|||
msgstr "Punto de venta - Muchos pedidos" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_negative_qty |
|||
msgid "Point of Sale - Negative Quantity" |
|||
msgstr "Punto de venta - Cantidad negativa" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_payment_id |
|||
#: model:res.groups,name:pos_access_right.group_payment |
|||
msgid "Point of Sale - Payment" |
|||
msgstr "Punto de Venta - Pago" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_change_unit_price |
|||
msgid "Point of Sale - Unit Price Change" |
|||
msgstr "Punto de venta - Cambio de precio unitario" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model,name:pos_access_right.model_pos_config |
|||
msgid "Point of Sale Configuration" |
|||
msgstr "Configuración del punto de venta" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_discount_id |
|||
msgid "This field is there to pass the id of the 'PoS - Allow Discount' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
"Este campo está allí para pasar la identificación del grupo 'PdV - Permitir " |
|||
"descuento' al Frontend del punto de venta." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_negative_qty_id |
|||
msgid "This field is there to pass the id of the 'PoS - Allow Negative Quantity' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
"Este campo está allí para pasar la identificación del grupo 'PdV - Permitir " |
|||
"cantidad negativa' al Frontend del punto de venta." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_change_unit_price_id |
|||
msgid "This field is there to pass the id of the 'PoS - Allow Unit Price Change' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
"Este campo está allí para pasar la identificación del grupo 'PdV - Permitir " |
|||
"cambio de precio unitario' al Frontend del punto de venta." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_delete_order_id |
|||
msgid "This field is there to pass the id of the 'PoS - Delete Order' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
"Este campo está allí para pasar la identificación del grupo 'PdV - Eliminar " |
|||
"pedido' al Frontend del punto de venta." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_multi_order_id |
|||
msgid "This field is there to pass the id of the 'PoS - Many Orders Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
"Este campo está allí para pasar la identificación del grupo 'PdV - Muchos " |
|||
"pedidos' al punto de venta frontend." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_payment_id |
|||
msgid "This field is there to pass the id of the 'PoS - Payment' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
"Este campo está allí para pasar la identificación del grupo 'PdV - Pago' al " |
|||
"Frontend del punto de venta." |
@ -1,189 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_access_right |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 9.0c\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2016-11-02 11:49+0000\n" |
|||
"PO-Revision-Date: 2016-11-02 11:49+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: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:142 |
|||
#, python-format |
|||
msgid "Change Unit Price - Unauthorized function" |
|||
msgstr "Changer le prix unitaire - Fonctionnalité non autorisée" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:87 |
|||
#, python-format |
|||
msgid "Delete Order - Unauthorized function" |
|||
msgstr "Supprimer une commande de vente - Fonctionnalité non autorisée" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:135 |
|||
#, python-format |
|||
msgid "Discount - Unauthorized function" |
|||
msgstr "Remise - Fonctionnalité non autorisée" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:70 |
|||
#, python-format |
|||
msgid "Many Orders - Unauthorized function" |
|||
msgstr "Plusieurs Commandes simultanées - Fonctionnalité non autorisée" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:115 |
|||
#, python-format |
|||
msgid "Negative Quantity - Unauthorized function" |
|||
msgstr "Quantité négative - Fonctionnalité non autorisée" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:166 |
|||
#, fuzzy, python-format |
|||
#| msgid "Discount - Unauthorized function" |
|||
msgid "Payment - Unauthorized function" |
|||
msgstr "Remise - Fonctionnalité non autorisée" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:71 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:88 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:116 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:136 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:143 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:167 |
|||
#, python-format |
|||
msgid "Please ask your manager to do it." |
|||
msgstr "Veuillez vous rapprocher d'un responsable" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_discount_id |
|||
msgid "Point of Sale - Allow Discount" |
|||
msgstr "Point de vente - Autoriser les remises" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_negative_qty_id |
|||
msgid "Point of Sale - Allow Negative Quantity" |
|||
msgstr "Point de vente - Autoriser les quantités négatives" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_change_unit_price_id |
|||
msgid "Point of Sale - Allow Unit Price Change" |
|||
msgstr "Point de vente - Autoriser le changement de prix unitaire" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_delete_order_id |
|||
#: model:res.groups,name:pos_access_right.group_delete_order |
|||
msgid "Point of Sale - Delete Order" |
|||
msgstr "Point de Vente - Supprimer une commande" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_discount |
|||
msgid "Point of Sale - Discount" |
|||
msgstr "Point de Vente - Remise" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_multi_order_id |
|||
#: model:res.groups,name:pos_access_right.group_multi_order |
|||
msgid "Point of Sale - Many Orders" |
|||
msgstr "Point de Vente - Plusieurs commandes simultanées" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_negative_qty |
|||
msgid "Point of Sale - Negative Quantity" |
|||
msgstr "Point de Vente - Quantité négative" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_payment_id |
|||
#: model:res.groups,name:pos_access_right.group_payment |
|||
#, fuzzy |
|||
#| msgid "Point of Sale - Discount" |
|||
msgid "Point of Sale - Payment" |
|||
msgstr "Point de Vente - Remise" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_change_unit_price |
|||
msgid "Point of Sale - Unit Price Change" |
|||
msgstr "Point de Vente - Changer de prix" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model,name:pos_access_right.model_pos_config |
|||
#, fuzzy |
|||
msgid "Point of Sale Configuration" |
|||
msgstr "Point de Vente - Remise" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_discount_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Allow Discount' Group to " |
|||
"the Point of Sale Frontend." |
|||
msgstr "" |
|||
"Ce champs existe pour passer l'ID du groupe 'PdV - Autoriser les remises' au " |
|||
"sein du point de vente tactile." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_negative_qty_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Allow Negative Quantity' " |
|||
"Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
"Ce champs existe pour passer l'ID du groupe 'PdV - Autoriser les quantités " |
|||
"négatives' au sein du point de vente tactile." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_change_unit_price_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Allow Unit Price Change' " |
|||
"Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
"Ce champs existe pour passer l'ID du groupe 'PdV - Autoriser les changements " |
|||
"de prix unitaires' au sein du point de vente tactile." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_delete_order_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Delete Order' Group to the " |
|||
"Point of Sale Frontend." |
|||
msgstr "" |
|||
"Ce champs existe pour passer l'ID du groupe 'PdV - Supprimer une commande' " |
|||
"au sein du point de vente tactile." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_multi_order_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Many Orders Group to the " |
|||
"Point of Sale Frontend." |
|||
msgstr "" |
|||
"Ce champs existe pour passer l'ID du groupe 'PdV - Plusieurs commandes' au " |
|||
"sein du point de vente tactile." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_payment_id |
|||
#, fuzzy |
|||
#| msgid "" |
|||
#| "This field is there to pass the id of the 'PoS - Many Orders Group to the " |
|||
#| "Point of Sale Frontend." |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Payment' Group to the Point " |
|||
"of Sale Frontend." |
|||
msgstr "" |
|||
"Ce champs existe pour passer l'ID du groupe 'PdV - Plusieurs commandes' au " |
|||
"sein du point de vente tactile." |
|||
|
|||
#~ msgid "pos.config" |
|||
#~ msgstr "pos.config" |
@ -1,152 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_access_right |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 12.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: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:142 |
|||
#, python-format |
|||
msgid "Change Unit Price - Unauthorized function" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:87 |
|||
#, python-format |
|||
msgid "Delete Order - Unauthorized function" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:135 |
|||
#, python-format |
|||
msgid "Discount - Unauthorized function" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:70 |
|||
#, python-format |
|||
msgid "Many Orders - Unauthorized function" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:115 |
|||
#, python-format |
|||
msgid "Negative Quantity - Unauthorized function" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:166 |
|||
#, python-format |
|||
msgid "Payment - Unauthorized function" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:71 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:88 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:116 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:136 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:143 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:167 |
|||
#, python-format |
|||
msgid "Please ask your manager to do it." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_discount_id |
|||
msgid "Point of Sale - Allow Discount" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_negative_qty_id |
|||
msgid "Point of Sale - Allow Negative Quantity" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_change_unit_price_id |
|||
msgid "Point of Sale - Allow Unit Price Change" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_delete_order_id |
|||
#: model:res.groups,name:pos_access_right.group_delete_order |
|||
msgid "Point of Sale - Delete Order" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_discount |
|||
msgid "Point of Sale - Discount" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_multi_order_id |
|||
#: model:res.groups,name:pos_access_right.group_multi_order |
|||
msgid "Point of Sale - Many Orders" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_negative_qty |
|||
msgid "Point of Sale - Negative Quantity" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_payment_id |
|||
#: model:res.groups,name:pos_access_right.group_payment |
|||
msgid "Point of Sale - Payment" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_change_unit_price |
|||
msgid "Point of Sale - Unit Price Change" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model,name:pos_access_right.model_pos_config |
|||
msgid "Point of Sale Configuration" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_discount_id |
|||
msgid "This field is there to pass the id of the 'PoS - Allow Discount' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_negative_qty_id |
|||
msgid "This field is there to pass the id of the 'PoS - Allow Negative Quantity' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_change_unit_price_id |
|||
msgid "This field is there to pass the id of the 'PoS - Allow Unit Price Change' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_delete_order_id |
|||
msgid "This field is there to pass the id of the 'PoS - Delete Order' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_multi_order_id |
|||
msgid "This field is there to pass the id of the 'PoS - Many Orders Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_payment_id |
|||
msgid "This field is there to pass the id of the 'PoS - Payment' Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
@ -1,169 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_access_right |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 12.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"PO-Revision-Date: 2019-05-30 11:19+0000\n" |
|||
"Last-Translator: Ivan Yelizariev <yelizariev@it-projects.info>\n" |
|||
"Language-Team: none\n" |
|||
"Language: ru\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" |
|||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" |
|||
"X-Generator: Weblate 3.6.1\n" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:142 |
|||
#, python-format |
|||
msgid "Change Unit Price - Unauthorized function" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:87 |
|||
#, python-format |
|||
msgid "Delete Order - Unauthorized function" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:135 |
|||
#, python-format |
|||
msgid "Discount - Unauthorized function" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:70 |
|||
#, python-format |
|||
msgid "Many Orders - Unauthorized function" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:115 |
|||
#, python-format |
|||
msgid "Negative Quantity - Unauthorized function" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:166 |
|||
#, python-format |
|||
msgid "Payment - Unauthorized function" |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#. openerp-web |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:71 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:88 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:116 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:136 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:143 |
|||
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:167 |
|||
#, python-format |
|||
msgid "Please ask your manager to do it." |
|||
msgstr "Попросите менеджера выполнить это действие." |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_discount_id |
|||
msgid "Point of Sale - Allow Discount" |
|||
msgstr "Точка продаж - Разрешить Скидки" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_negative_qty_id |
|||
msgid "Point of Sale - Allow Negative Quantity" |
|||
msgstr "Точка продаж - Разрешить отрицательное количество" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_change_unit_price_id |
|||
msgid "Point of Sale - Allow Unit Price Change" |
|||
msgstr "Точка продаж - Разрешить изменение цены за штуку" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_delete_order_id |
|||
#: model:res.groups,name:pos_access_right.group_delete_order |
|||
msgid "Point of Sale - Delete Order" |
|||
msgstr "Точка продаж - Удаление заказа" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_discount |
|||
msgid "Point of Sale - Discount" |
|||
msgstr "Точка продаж - Скидки" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_multi_order_id |
|||
#: model:res.groups,name:pos_access_right.group_multi_order |
|||
msgid "Point of Sale - Many Orders" |
|||
msgstr "Точка продаж - Более одного заказа" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_negative_qty |
|||
msgid "Point of Sale - Negative Quantity" |
|||
msgstr "Точка продаж - Отрицательное количество" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_payment_id |
|||
#: model:res.groups,name:pos_access_right.group_payment |
|||
#, fuzzy |
|||
#| msgid "Point of Sale - Discount" |
|||
msgid "Point of Sale - Payment" |
|||
msgstr "Точка продаж - Скидки" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:res.groups,name:pos_access_right.group_change_unit_price |
|||
msgid "Point of Sale - Unit Price Change" |
|||
msgstr "Точка продаж - Изменение цены за штуку" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model,name:pos_access_right.model_pos_config |
|||
msgid "Point of Sale Configuration" |
|||
msgstr "Настройки Точки продаж" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_discount_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Allow Discount' Group to " |
|||
"the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_negative_qty_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Allow Negative Quantity' " |
|||
"Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_change_unit_price_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Allow Unit Price Change' " |
|||
"Group to the Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_delete_order_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Delete Order' Group to the " |
|||
"Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_multi_order_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Many Orders Group to the " |
|||
"Point of Sale Frontend." |
|||
msgstr "" |
|||
|
|||
#. module: pos_access_right |
|||
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_payment_id |
|||
msgid "" |
|||
"This field is there to pass the id of the 'PoS - Payment' Group to the Point " |
|||
"of Sale Frontend." |
|||
msgstr "" |
@ -1,87 +0,0 @@ |
|||
# Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>) |
|||
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from openerp import fields, models, api |
|||
|
|||
|
|||
class PosConfig(models.Model): |
|||
_inherit = 'pos.config' |
|||
|
|||
group_negative_qty_id = fields.Many2one( |
|||
comodel_name='res.groups', |
|||
compute='_compute_group_negative_qty_id', |
|||
string='Point of Sale - Allow Negative Quantity', |
|||
help="This field is there to pass the id of the 'PoS - Allow Negative" |
|||
" Quantity' Group to the Point of Sale Frontend.") |
|||
|
|||
group_discount_id = fields.Many2one( |
|||
comodel_name='res.groups', |
|||
compute='_compute_group_discount_id', |
|||
string='Point of Sale - Allow Discount', |
|||
help="This field is there to pass the id of the 'PoS - Allow Discount'" |
|||
" Group to the Point of Sale Frontend.") |
|||
|
|||
group_change_unit_price_id = fields.Many2one( |
|||
comodel_name='res.groups', |
|||
compute='_compute_group_change_unit_price_id', |
|||
string='Point of Sale - Allow Unit Price Change', |
|||
help="This field is there to pass the id of the 'PoS - Allow Unit" |
|||
" Price Change' Group to the Point of Sale Frontend.") |
|||
|
|||
group_multi_order_id = fields.Many2one( |
|||
comodel_name='res.groups', |
|||
compute='_compute_group_multi_order_id', |
|||
string='Point of Sale - Many Orders', |
|||
help="This field is there to pass the id of the 'PoS - Many Orders" |
|||
" Group to the Point of Sale Frontend.") |
|||
|
|||
group_delete_order_id = fields.Many2one( |
|||
comodel_name='res.groups', |
|||
compute='_compute_group_delete_order_id', |
|||
string='Point of Sale - Delete Order', |
|||
help="This field is there to pass the id of the 'PoS - Delete Order'" |
|||
" Group to the Point of Sale Frontend.") |
|||
|
|||
group_payment_id = fields.Many2one( |
|||
comodel_name='res.groups', |
|||
compute='_compute_group_payment_id', |
|||
string='Point of Sale - Payment', |
|||
help="This field is there to pass the id of the 'PoS - Payment'" |
|||
" Group to the Point of Sale Frontend.") |
|||
|
|||
@api.multi |
|||
def _compute_group_negative_qty_id(self): |
|||
for config in self: |
|||
self.group_negative_qty_id = \ |
|||
self.env.ref('pos_access_right.group_negative_qty') |
|||
|
|||
@api.multi |
|||
def _compute_group_discount_id(self): |
|||
for config in self: |
|||
self.group_discount_id = \ |
|||
self.env.ref('pos_access_right.group_discount') |
|||
|
|||
@api.multi |
|||
def _compute_group_change_unit_price_id(self): |
|||
for config in self: |
|||
self.group_change_unit_price_id = \ |
|||
self.env.ref('pos_access_right.group_change_unit_price') |
|||
|
|||
@api.multi |
|||
def _compute_group_multi_order_id(self): |
|||
for config in self: |
|||
self.group_multi_order_id = \ |
|||
self.env.ref('pos_access_right.group_multi_order') |
|||
|
|||
@api.multi |
|||
def _compute_group_delete_order_id(self): |
|||
for config in self: |
|||
self.group_delete_order_id = \ |
|||
self.env.ref('pos_access_right.group_delete_order') |
|||
|
|||
@api.multi |
|||
def _compute_group_payment_id(self): |
|||
for config in self: |
|||
self.group_payment_id = \ |
|||
self.env.ref('pos_access_right.group_payment') |
@ -1 +0,0 @@ |
|||
Once installed, you have to give correct access right to your cashiers. |
@ -1 +0,0 @@ |
|||
* Sylvain LE GAL <https://twitter.com/legalsylvain> |
@ -1,7 +0,0 @@ |
|||
This module extends Odoo Point Of Sale features, restricting possibility to cashier to make some actions in the Point of Sale. This module will add the following groups to Odoo: |
|||
|
|||
* **PoS - Negative Quantity**: The cashier can sell negative quantity in Point Of Sale (ie, can return products); |
|||
* **PoS - Discount**: The cashier can set Discount in Point Of Sale; |
|||
* **PoS - Change Unit Price**: The cashier can change the unit price of a product in Point Of Sale; |
|||
* **PoS - Many Orders**: The cashier can many orders at the same time; |
|||
* **PoS - Delete Order**: The cashier can not delete a full order; |
@ -1,3 +0,0 @@ |
|||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas |
|||
:alt: Try me on Runbot |
|||
:target: https://runbot.odoo-community.org/runbot/184/9.0 |
@ -1,39 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- |
|||
Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>) |
|||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
--> |
|||
<odoo noupdate="1"> |
|||
|
|||
<record id="group_negative_qty" model="res.groups"> |
|||
<field name="name">Point of Sale - Negative Quantity</field> |
|||
<field name="category_id" ref="base.module_category_usability"/> |
|||
</record> |
|||
|
|||
<record id="group_discount" model="res.groups"> |
|||
<field name="name">Point of Sale - Discount</field> |
|||
<field name="category_id" ref="base.module_category_usability"/> |
|||
</record> |
|||
|
|||
<record id="group_change_unit_price" model="res.groups"> |
|||
<field name="name">Point of Sale - Unit Price Change</field> |
|||
<field name="category_id" ref="base.module_category_usability"/> |
|||
</record> |
|||
|
|||
<record id="group_multi_order" model="res.groups"> |
|||
<field name="name">Point of Sale - Many Orders</field> |
|||
<field name="category_id" ref="base.module_category_usability"/> |
|||
</record> |
|||
|
|||
<record id="group_delete_order" model="res.groups"> |
|||
<field name="name">Point of Sale - Delete Order</field> |
|||
<field name="category_id" ref="base.module_category_usability"/> |
|||
</record> |
|||
|
|||
<record id="group_payment" model="res.groups"> |
|||
<field name="name">Point of Sale - Payment</field> |
|||
<field name="category_id" ref="base.module_category_usability"/> |
|||
</record> |
|||
|
|||
</odoo> |
Before Width: 243 | Height: 240 | Size: 9.3 KiB |
Before Width: 552 | Height: 442 | Size: 12 KiB |
Before Width: 244 | Height: 245 | Size: 9.1 KiB |
Before Width: 64 | Height: 64 | Size: 4.3 KiB |
@ -1,437 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|||
<head> |
|||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" /> |
|||
<title>Point of Sale - Extra Access Right</title> |
|||
<style type="text/css"> |
|||
|
|||
/* |
|||
:Author: David Goodger (goodger@python.org) |
|||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $ |
|||
:Copyright: This stylesheet has been placed in the public domain. |
|||
|
|||
Default cascading style sheet for the HTML output of Docutils. |
|||
|
|||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to |
|||
customize this style sheet. |
|||
*/ |
|||
|
|||
/* used to remove borders from tables and images */ |
|||
.borderless, table.borderless td, table.borderless th { |
|||
border: 0 } |
|||
|
|||
table.borderless td, table.borderless th { |
|||
/* Override padding for "table.docutils td" with "! important". |
|||
The right padding separates the table cells. */ |
|||
padding: 0 0.5em 0 0 ! important } |
|||
|
|||
.first { |
|||
/* Override more specific margin styles with "! important". */ |
|||
margin-top: 0 ! important } |
|||
|
|||
.last, .with-subtitle { |
|||
margin-bottom: 0 ! important } |
|||
|
|||
.hidden { |
|||
display: none } |
|||
|
|||
.subscript { |
|||
vertical-align: sub; |
|||
font-size: smaller } |
|||
|
|||
.superscript { |
|||
vertical-align: super; |
|||
font-size: smaller } |
|||
|
|||
a.toc-backref { |
|||
text-decoration: none ; |
|||
color: black } |
|||
|
|||
blockquote.epigraph { |
|||
margin: 2em 5em ; } |
|||
|
|||
dl.docutils dd { |
|||
margin-bottom: 0.5em } |
|||
|
|||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { |
|||
overflow: hidden; |
|||
} |
|||
|
|||
/* Uncomment (and remove this text!) to get bold-faced definition list terms |
|||
dl.docutils dt { |
|||
font-weight: bold } |
|||
*/ |
|||
|
|||
div.abstract { |
|||
margin: 2em 5em } |
|||
|
|||
div.abstract p.topic-title { |
|||
font-weight: bold ; |
|||
text-align: center } |
|||
|
|||
div.admonition, div.attention, div.caution, div.danger, div.error, |
|||
div.hint, div.important, div.note, div.tip, div.warning { |
|||
margin: 2em ; |
|||
border: medium outset ; |
|||
padding: 1em } |
|||
|
|||
div.admonition p.admonition-title, div.hint p.admonition-title, |
|||
div.important p.admonition-title, div.note p.admonition-title, |
|||
div.tip p.admonition-title { |
|||
font-weight: bold ; |
|||
font-family: sans-serif } |
|||
|
|||
div.attention p.admonition-title, div.caution p.admonition-title, |
|||
div.danger p.admonition-title, div.error p.admonition-title, |
|||
div.warning p.admonition-title, .code .error { |
|||
color: red ; |
|||
font-weight: bold ; |
|||
font-family: sans-serif } |
|||
|
|||
/* Uncomment (and remove this text!) to get reduced vertical space in |
|||
compound paragraphs. |
|||
div.compound .compound-first, div.compound .compound-middle { |
|||
margin-bottom: 0.5em } |
|||
|
|||
div.compound .compound-last, div.compound .compound-middle { |
|||
margin-top: 0.5em } |
|||
*/ |
|||
|
|||
div.dedication { |
|||
margin: 2em 5em ; |
|||
text-align: center ; |
|||
font-style: italic } |
|||
|
|||
div.dedication p.topic-title { |
|||
font-weight: bold ; |
|||
font-style: normal } |
|||
|
|||
div.figure { |
|||
margin-left: 2em ; |
|||
margin-right: 2em } |
|||
|
|||
div.footer, div.header { |
|||
clear: both; |
|||
font-size: smaller } |
|||
|
|||
div.line-block { |
|||
display: block ; |
|||
margin-top: 1em ; |
|||
margin-bottom: 1em } |
|||
|
|||
div.line-block div.line-block { |
|||
margin-top: 0 ; |
|||
margin-bottom: 0 ; |
|||
margin-left: 1.5em } |
|||
|
|||
div.sidebar { |
|||
margin: 0 0 0.5em 1em ; |
|||
border: medium outset ; |
|||
padding: 1em ; |
|||
background-color: #ffffee ; |
|||
width: 40% ; |
|||
float: right ; |
|||
clear: right } |
|||
|
|||
div.sidebar p.rubric { |
|||
font-family: sans-serif ; |
|||
font-size: medium } |
|||
|
|||
div.system-messages { |
|||
margin: 5em } |
|||
|
|||
div.system-messages h1 { |
|||
color: red } |
|||
|
|||
div.system-message { |
|||
border: medium outset ; |
|||
padding: 1em } |
|||
|
|||
div.system-message p.system-message-title { |
|||
color: red ; |
|||
font-weight: bold } |
|||
|
|||
div.topic { |
|||
margin: 2em } |
|||
|
|||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, |
|||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { |
|||
margin-top: 0.4em } |
|||
|
|||
h1.title { |
|||
text-align: center } |
|||
|
|||
h2.subtitle { |
|||
text-align: center } |
|||
|
|||
hr.docutils { |
|||
width: 75% } |
|||
|
|||
img.align-left, .figure.align-left, object.align-left, table.align-left { |
|||
clear: left ; |
|||
float: left ; |
|||
margin-right: 1em } |
|||
|
|||
img.align-right, .figure.align-right, object.align-right, table.align-right { |
|||
clear: right ; |
|||
float: right ; |
|||
margin-left: 1em } |
|||
|
|||
img.align-center, .figure.align-center, object.align-center { |
|||
display: block; |
|||
margin-left: auto; |
|||
margin-right: auto; |
|||
} |
|||
|
|||
table.align-center { |
|||
margin-left: auto; |
|||
margin-right: auto; |
|||
} |
|||
|
|||
.align-left { |
|||
text-align: left } |
|||
|
|||
.align-center { |
|||
clear: both ; |
|||
text-align: center } |
|||
|
|||
.align-right { |
|||
text-align: right } |
|||
|
|||
/* reset inner alignment in figures */ |
|||
div.align-right { |
|||
text-align: inherit } |
|||
|
|||
/* div.align-center * { */ |
|||
/* text-align: left } */ |
|||
|
|||
.align-top { |
|||
vertical-align: top } |
|||
|
|||
.align-middle { |
|||
vertical-align: middle } |
|||
|
|||
.align-bottom { |
|||
vertical-align: bottom } |
|||
|
|||
ol.simple, ul.simple { |
|||
margin-bottom: 1em } |
|||
|
|||
ol.arabic { |
|||
list-style: decimal } |
|||
|
|||
ol.loweralpha { |
|||
list-style: lower-alpha } |
|||
|
|||
ol.upperalpha { |
|||
list-style: upper-alpha } |
|||
|
|||
ol.lowerroman { |
|||
list-style: lower-roman } |
|||
|
|||
ol.upperroman { |
|||
list-style: upper-roman } |
|||
|
|||
p.attribution { |
|||
text-align: right ; |
|||
margin-left: 50% } |
|||
|
|||
p.caption { |
|||
font-style: italic } |
|||
|
|||
p.credits { |
|||
font-style: italic ; |
|||
font-size: smaller } |
|||
|
|||
p.label { |
|||
white-space: nowrap } |
|||
|
|||
p.rubric { |
|||
font-weight: bold ; |
|||
font-size: larger ; |
|||
color: maroon ; |
|||
text-align: center } |
|||
|
|||
p.sidebar-title { |
|||
font-family: sans-serif ; |
|||
font-weight: bold ; |
|||
font-size: larger } |
|||
|
|||
p.sidebar-subtitle { |
|||
font-family: sans-serif ; |
|||
font-weight: bold } |
|||
|
|||
p.topic-title { |
|||
font-weight: bold } |
|||
|
|||
pre.address { |
|||
margin-bottom: 0 ; |
|||
margin-top: 0 ; |
|||
font: inherit } |
|||
|
|||
pre.literal-block, pre.doctest-block, pre.math, pre.code { |
|||
margin-left: 2em ; |
|||
margin-right: 2em } |
|||
|
|||
pre.code .ln { color: grey; } /* line numbers */ |
|||
pre.code, code { background-color: #eeeeee } |
|||
pre.code .comment, code .comment { color: #5C6576 } |
|||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } |
|||
pre.code .literal.string, code .literal.string { color: #0C5404 } |
|||
pre.code .name.builtin, code .name.builtin { color: #352B84 } |
|||
pre.code .deleted, code .deleted { background-color: #DEB0A1} |
|||
pre.code .inserted, code .inserted { background-color: #A3D289} |
|||
|
|||
span.classifier { |
|||
font-family: sans-serif ; |
|||
font-style: oblique } |
|||
|
|||
span.classifier-delimiter { |
|||
font-family: sans-serif ; |
|||
font-weight: bold } |
|||
|
|||
span.interpreted { |
|||
font-family: sans-serif } |
|||
|
|||
span.option { |
|||
white-space: nowrap } |
|||
|
|||
span.pre { |
|||
white-space: pre } |
|||
|
|||
span.problematic { |
|||
color: red } |
|||
|
|||
span.section-subtitle { |
|||
/* font-size relative to parent (h1..h6 element) */ |
|||
font-size: 80% } |
|||
|
|||
table.citation { |
|||
border-left: solid 1px gray; |
|||
margin-left: 1px } |
|||
|
|||
table.docinfo { |
|||
margin: 2em 4em } |
|||
|
|||
table.docutils { |
|||
margin-top: 0.5em ; |
|||
margin-bottom: 0.5em } |
|||
|
|||
table.footnote { |
|||
border-left: solid 1px black; |
|||
margin-left: 1px } |
|||
|
|||
table.docutils td, table.docutils th, |
|||
table.docinfo td, table.docinfo th { |
|||
padding-left: 0.5em ; |
|||
padding-right: 0.5em ; |
|||
vertical-align: top } |
|||
|
|||
table.docutils th.field-name, table.docinfo th.docinfo-name { |
|||
font-weight: bold ; |
|||
text-align: left ; |
|||
white-space: nowrap ; |
|||
padding-left: 0 } |
|||
|
|||
/* "booktabs" style (no vertical lines) */ |
|||
table.docutils.booktabs { |
|||
border: 0px; |
|||
border-top: 2px solid; |
|||
border-bottom: 2px solid; |
|||
border-collapse: collapse; |
|||
} |
|||
table.docutils.booktabs * { |
|||
border: 0px; |
|||
} |
|||
table.docutils.booktabs th { |
|||
border-bottom: thin solid; |
|||
text-align: left; |
|||
} |
|||
|
|||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, |
|||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { |
|||
font-size: 100% } |
|||
|
|||
ul.auto-toc { |
|||
list-style-type: none } |
|||
|
|||
</style> |
|||
</head> |
|||
<body> |
|||
<div class="document" id="point-of-sale-extra-access-right"> |
|||
<h1 class="title">Point of Sale - Extra Access Right</h1> |
|||
|
|||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
!! This file is generated by oca-gen-addon-readme !! |
|||
!! changes will be overwritten. !! |
|||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> |
|||
<p><a class="reference external" 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" 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" href="https://github.com/OCA/pos/tree/12.0/pos_access_right"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_access_right"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/184/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> |
|||
<p>This module extends Odoo Point Of Sale features, restricting possibility to cashier to make some actions in the Point of Sale. This module will add the following groups to Odoo:</p> |
|||
<ul class="simple"> |
|||
<li><strong>PoS - Negative Quantity</strong>: The cashier can sell negative quantity in Point Of Sale (ie, can return products);</li> |
|||
<li><strong>PoS - Discount</strong>: The cashier can set Discount in Point Of Sale;</li> |
|||
<li><strong>PoS - Change Unit Price</strong>: The cashier can change the unit price of a product in Point Of Sale;</li> |
|||
<li><strong>PoS - Many Orders</strong>: The cashier can many orders at the same time;</li> |
|||
<li><strong>PoS - Delete Order</strong>: The cashier can not delete a full order;</li> |
|||
</ul> |
|||
<p><strong>Table of contents</strong></p> |
|||
<div class="contents local topic" id="contents"> |
|||
<ul class="simple"> |
|||
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li> |
|||
<li><a class="reference internal" href="#usage" id="id2">Usage</a></li> |
|||
<li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li> |
|||
<li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> |
|||
<li><a class="reference internal" href="#authors" id="id5">Authors</a></li> |
|||
<li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> |
|||
<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> |
|||
</ul> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
<div class="section" id="configuration"> |
|||
<h1><a class="toc-backref" href="#id1">Configuration</a></h1> |
|||
<p>Once installed, you have to give correct access right to your cashiers.</p> |
|||
</div> |
|||
<div class="section" id="usage"> |
|||
<h1><a class="toc-backref" href="#id2">Usage</a></h1> |
|||
<a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/184/9.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> |
|||
</div> |
|||
<div class="section" id="bug-tracker"> |
|||
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1> |
|||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/pos/issues">GitHub Issues</a>. |
|||
In case of trouble, please check there if your issue has already been reported. |
|||
If you spotted it first, help us smashing it by providing a detailed and welcomed |
|||
<a class="reference external" href="https://github.com/OCA/pos/issues/new?body=module:%20pos_access_right%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> |
|||
<p>Do not contact contributors directly about support or help with technical issues.</p> |
|||
</div> |
|||
<div class="section" id="credits"> |
|||
<h1><a class="toc-backref" href="#id4">Credits</a></h1> |
|||
<div class="section" id="authors"> |
|||
<h2><a class="toc-backref" href="#id5">Authors</a></h2> |
|||
<ul class="simple"> |
|||
<li>La Louve</li> |
|||
<li>GRAP</li> |
|||
</ul> |
|||
</div> |
|||
<div class="section" id="contributors"> |
|||
<h2><a class="toc-backref" href="#id6">Contributors</a></h2> |
|||
<ul class="simple"> |
|||
<li>Sylvain LE GAL <<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>></li> |
|||
</ul> |
|||
</div> |
|||
<div class="section" id="maintainers"> |
|||
<h2><a class="toc-backref" href="#id7">Maintainers</a></h2> |
|||
<p>This module is maintained by the OCA.</p> |
|||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> |
|||
<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>This module is part of the <a class="reference external" href="https://github.com/OCA/pos/tree/12.0/pos_access_right">OCA/pos</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> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
</html> |
Before Width: 678 | Height: 141 | Size: 15 KiB |
@ -1,13 +0,0 @@ |
|||
/* |
|||
Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>) |
|||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
*/ |
|||
|
|||
.pos-disabled-mode { |
|||
color: #bbb !important; |
|||
background-color: #d3d3d3 !important; |
|||
} |
|||
.pos-disabled-mode:hover { |
|||
background: #e2e2e2 !important; |
|||
} |
@ -1,176 +0,0 @@ |
|||
/* |
|||
Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>)
|
|||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|||
*/ |
|||
|
|||
|
|||
odoo.define('pos_access_right.pos_access_right', function (require) { |
|||
"use strict"; |
|||
|
|||
var screens = require('point_of_sale.screens'); |
|||
var chrome = require('point_of_sale.chrome'); |
|||
var models = require('point_of_sale.models'); |
|||
var gui = require('point_of_sale.gui'); |
|||
var core = require('web.core'); |
|||
var _t = core._t; |
|||
|
|||
// New function 'display_access_right' to display disabled functions
|
|||
gui.Gui.prototype.display_access_right = function (user) { |
|||
if (user.groups_id.indexOf( |
|||
this.pos.config.group_negative_qty_id[0]) === -1) { |
|||
$('.numpad-minus').addClass('pos-disabled-mode'); |
|||
} else { |
|||
$('.numpad-minus').removeClass('pos-disabled-mode'); |
|||
} |
|||
if (user.groups_id.indexOf( |
|||
this.pos.config.group_discount_id[0]) === -1) { |
|||
$(".mode-button[data-mode='discount']").addClass( |
|||
'pos-disabled-mode'); |
|||
} else { |
|||
$(".mode-button[data-mode='discount']").removeClass( |
|||
'pos-disabled-mode'); |
|||
} |
|||
if (user.groups_id.indexOf( |
|||
this.pos.config.group_change_unit_price_id[0]) === -1) { |
|||
$(".mode-button[data-mode='price']").addClass('pos-disabled-mode'); |
|||
} else { |
|||
$(".mode-button[data-mode='price']").removeClass( |
|||
'pos-disabled-mode'); |
|||
} |
|||
if (user.groups_id.indexOf( |
|||
this.pos.config.group_payment_id[0]) === -1) { |
|||
$(".button.pay").addClass('pos-disabled-mode'); |
|||
} else { |
|||
$(".button.pay").removeClass('pos-disabled-mode'); |
|||
} |
|||
}; |
|||
|
|||
// Overload 'set_cashier' function to display correctly
|
|||
// unauthorized function after cashier changed
|
|||
var _set_cashier_ = models.PosModel.prototype.set_cashier; |
|||
models.PosModel.prototype.set_cashier = function (user) { |
|||
if (user.groups_id) { |
|||
this.gui.display_access_right(user); |
|||
} |
|||
_set_cashier_.call(this, user); |
|||
}; |
|||
|
|||
chrome.OrderSelectorWidget.include({ |
|||
|
|||
/** |
|||
* Click new order |
|||
* @param {MouseEvent} event |
|||
* @param {HTMLElement | jQuery} $el |
|||
*/ |
|||
neworder_click_handler: function (event, $el) { |
|||
if (this.pos.get_cashier().groups_id.indexOf( |
|||
this.pos.config.group_multi_order_id[0]) === -1) { |
|||
this.gui.show_popup('error', { |
|||
'title': _t('Many Orders - Unauthorized function'), |
|||
'body': _t('Please ask your manager to do it.'), |
|||
}); |
|||
} else { |
|||
this._super(event, $el); |
|||
} |
|||
}, |
|||
|
|||
/** |
|||
* Click delete order |
|||
* @param {MouseEvent} event |
|||
* @param {HTMLElement | jQuery} $el |
|||
*/ |
|||
deleteorder_click_handler: function (event, $el) { |
|||
if (this.pos.get_cashier().groups_id.indexOf( |
|||
this.pos.config.group_delete_order_id[0]) === -1) { |
|||
this.gui.show_popup('error', { |
|||
'title': _t('Delete Order - Unauthorized function'), |
|||
'body': _t('Please ask your manager to do it.'), |
|||
}); |
|||
} else { |
|||
this._super(event, $el); |
|||
} |
|||
}, |
|||
}); |
|||
|
|||
screens.NumpadWidget.include({ |
|||
|
|||
/** |
|||
* To display correctly unauthorized function at the beginning of the |
|||
session, based on current user |
|||
*/ |
|||
start: function () { |
|||
this._super(); |
|||
this.gui.display_access_right(this.pos.get_cashier()); |
|||
}, |
|||
|
|||
/** |
|||
* Block '+/-' button if user doesn't belong to the correct group |
|||
* @returns {Object} |
|||
*/ |
|||
clickSwitchSign: function () { |
|||
if (this.pos.get_cashier().groups_id.indexOf( |
|||
this.pos.config.group_negative_qty_id[0]) === -1) { |
|||
this.gui.show_popup('error', { |
|||
'title': _t('Negative Quantity - Unauthorized function'), |
|||
'body': _t('Please ask your manager to do it.'), |
|||
}); |
|||
} else { |
|||
return this._super(); |
|||
} |
|||
}, |
|||
|
|||
/** |
|||
* Block 'discount' or 'price' button if user doesn't belong to the |
|||
correct group |
|||
* @param {MouseEvent} event |
|||
* @returns {Object} |
|||
*/ |
|||
clickChangeMode: function (event) { |
|||
var target = event.currentTarget.attributes['data-mode']; |
|||
if (target.nodeValue === 'discount' && |
|||
this.pos.get_cashier().groups_id.indexOf( |
|||
this.pos.config.group_discount_id[0]) === -1) { |
|||
this.gui.show_popup('error', { |
|||
'title': _t('Discount - Unauthorized function'), |
|||
'body': _t('Please ask your manager to do it.'), |
|||
}); |
|||
} else if (target.nodeValue === 'price' && |
|||
this.pos.get_cashier().groups_id.indexOf( |
|||
this.pos.config.group_change_unit_price_id[0]) === -1) { |
|||
this.gui.show_popup('error', { |
|||
'title': _t('Change Unit Price - Unauthorized function'), |
|||
'body': _t('Please ask your manager to do it.'), |
|||
}); |
|||
} else { |
|||
return this._super(event); |
|||
} |
|||
}, |
|||
}); |
|||
|
|||
screens.ActionpadWidget.include({ |
|||
|
|||
/** |
|||
* Block 'Payment' button if user doesn't belong to the correct group |
|||
*/ |
|||
renderElement: function () { |
|||
var self = this; |
|||
this._super(); |
|||
this.gui.display_access_right(this.pos.get_cashier()); |
|||
var button_pay_click_handler = $._data( |
|||
this.$el.find(".button.pay")[0], "events").click[0].handler; |
|||
this.$('.pay').off('click').click(function () { |
|||
if (self.pos.get_cashier().groups_id.indexOf( |
|||
self.pos.config.group_payment_id[0]) === -1) { |
|||
self.gui.show_popup('error', { |
|||
'title': _t('Payment - Unauthorized function'), |
|||
'body': _t('Please ask your manager to do it.'), |
|||
}); |
|||
} else { |
|||
button_pay_click_handler(); |
|||
} |
|||
}); |
|||
}, |
|||
}); |
|||
|
|||
}); |
@ -1,17 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- |
|||
Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>) |
|||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
--> |
|||
|
|||
<odoo> |
|||
<template id="assets_frontend" inherit_id="point_of_sale.assets"> |
|||
<xpath expr="." position="inside"> |
|||
<script type="text/javascript" src="/pos_access_right/static/src/js/pos_access_right.js"/> |
|||
</xpath> |
|||
<xpath expr="//link[@id='pos-stylesheet']" position="after"> |
|||
<link rel="stylesheet" href="/pos_access_right/static/src/css/pos_access_right.css" /> |
|||
</xpath> |
|||
</template> |
|||
</odoo> |
@ -0,0 +1,94 @@ |
|||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png |
|||
:target: https://www.gnu.org/licenses/agpl |
|||
:alt: License: AGPL-3 |
|||
|
|||
========================= |
|||
POS Backend Communication |
|||
========================= |
|||
|
|||
Communicate with the backend from point of sale. |
|||
|
|||
Common use case: |
|||
|
|||
- a click on a button on the pos opens the backend in a popup to a specific view. |
|||
- a click on a button on the backend's view send to pos some interesting data. |
|||
|
|||
Implementations |
|||
--------------- |
|||
|
|||
pos_backend_partner: select a pos customer from the backend |
|||
|
|||
|
|||
Configuration |
|||
============= |
|||
|
|||
No configuration is needed. |
|||
|
|||
Developper Guide |
|||
================ |
|||
|
|||
The POS communicate with subpages (popups) with window.open and window.postMessage. |
|||
|
|||
Popups are in not-so-old browsers opened in tabs. |
|||
|
|||
When a backend page is open, a class is set on body to hide menus. |
|||
|
|||
|
|||
Roadmap |
|||
======= |
|||
|
|||
- Improve origin verificiation |
|||
- Try to use frames instead of popups |
|||
- Use notifications for supported browsers |
|||
|
|||
Known limitation |
|||
================ |
|||
|
|||
- It doesn't work offline. |
|||
|
|||
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 smash it by providing detailed and welcomed feedback. |
|||
|
|||
|
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Images |
|||
------ |
|||
|
|||
* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_. |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Raphaël Reverdy <raphael.reverdy@akretion.com> http://akretion.com |
|||
|
|||
Do not contact contributors directly about support or help with technical issues. |
|||
|
|||
Funders |
|||
------- |
|||
|
|||
The development of this module has been financially supported by: |
|||
|
|||
* Akretion |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
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. |
|||
|
|||
To contribute to this module, please visit https://odoo-community.org. |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 Akretion (http://www.akretion.com). |
|||
# @author Raphaël Reverdy <raphael.reverdy@akretion.com> |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
{ |
|||
"name": "POS Backend Communication", |
|||
"summary": "Communicate with odoo's backend from POS.", |
|||
"version": "10.0.1.0.0", |
|||
"category": "Point of Sale", |
|||
"website": "http://www.akretion.com", |
|||
'author': 'Akretion, Odoo Community Association (OCA)', |
|||
"license": "AGPL-3", |
|||
"application": False, |
|||
'installable': True, |
|||
"depends": [ |
|||
"point_of_sale", |
|||
], |
|||
"data": [ |
|||
'views/assets.xml', |
|||
], |
|||
} |
@ -0,0 +1,26 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_backend_communication |
|||
# |
|||
# Translators: |
|||
# enjolras <yo@miguelrevilla.com>, 2018 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 10.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2018-03-01 02:01+0000\n" |
|||
"PO-Revision-Date: 2018-03-01 02:01+0000\n" |
|||
"Last-Translator: enjolras <yo@miguelrevilla.com>, 2018\n" |
|||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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" |
|||
|
|||
#. module: pos_backend_communication |
|||
#. openerp-web |
|||
#: code:addons/pos_backend_communication/static/src/js/common.js:30 |
|||
#, python-format |
|||
msgid "Please authorize popups for this window" |
|||
msgstr "Permita las ventanas emergentes" |
@ -0,0 +1,26 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_backend_communication |
|||
# |
|||
# Translators: |
|||
# Francesco Fresta <franco.fresta@gmail.com>, 2018 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 10.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2018-03-01 02:01+0000\n" |
|||
"PO-Revision-Date: 2018-03-01 02:01+0000\n" |
|||
"Last-Translator: Francesco Fresta <franco.fresta@gmail.com>, 2018\n" |
|||
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\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" |
|||
|
|||
#. module: pos_backend_communication |
|||
#. openerp-web |
|||
#: code:addons/pos_backend_communication/static/src/js/common.js:30 |
|||
#, python-format |
|||
msgid "Please authorize popups for this window" |
|||
msgstr "Per favore autorizza i popup per questa finestra" |
@ -0,0 +1,22 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_backend_communication |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 10.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: pos_backend_communication |
|||
#. openerp-web |
|||
#: code:addons/pos_backend_communication/static/src/js/common.js:30 |
|||
#, python-format |
|||
msgid "Please authorize popups for this window" |
|||
msgstr "" |
|||
|
Before Width: 128 | Height: 128 | Size: 9.2 KiB After Width: 128 | Height: 128 | Size: 9.2 KiB |
@ -0,0 +1,6 @@ |
|||
.pos_backend_communication .o_sub_menu { |
|||
display: none !important; |
|||
} |
|||
.pos_backend_communication #oe_main_menu_navbar { |
|||
display: none !important; |
|||
} |
@ -0,0 +1,42 @@ |
|||
'use strict'; |
|||
|
|||
odoo.define('pos_backend_communication.back', function (require) { |
|||
var tools = require('pos_backend_communication.tools'); |
|||
var ActionManager = require('web.ActionManager'); |
|||
var core = require('web.core') |
|||
|
|||
function is_tied_to_pos() { |
|||
return (!!window.opener); |
|||
//TODO : add test location.origin
|
|||
} |
|||
|
|||
function sendMessage(a) { |
|||
//send message to pos
|
|||
if (is_tied_to_pos()) { |
|||
//can only work if the backoffice is opened by the POS
|
|||
window.opener.postMessage(a, location.origin); |
|||
} |
|||
} |
|||
|
|||
if (is_tied_to_pos()) { |
|||
//set up action 'act_tell_pos' called by .py
|
|||
ActionManager.include({ |
|||
ir_actions_act_tell_pos: function (action, options) { |
|||
sendMessage(action.payload); |
|||
} |
|||
}); |
|||
|
|||
//when page is fully loaded
|
|||
core.bus.on('web_client_ready', null, function () { |
|||
//this class hides menus
|
|||
$('body').addClass('pos_backend_communication'); |
|||
}); |
|||
} |
|||
|
|||
return { |
|||
'sendMessage': sendMessage, |
|||
'callbacks': tools.callbacks, |
|||
'is_tied_to_pos': is_tied_to_pos, |
|||
}; |
|||
|
|||
}); |
@ -0,0 +1,40 @@ |
|||
'use strict'; |
|||
|
|||
odoo.define('pos_backend_communication.tools', function (require) { |
|||
var translation = require('web.translation'); |
|||
var core = require('web.core'); |
|||
var _t = translation._t; |
|||
var callbacks = {}; |
|||
|
|||
function dispatchMessageEvent(message) { |
|||
//don't be tricked by others sites
|
|||
if (message.origin !== window.location.origin) { |
|||
return console.error('Message coming from untrusted source'); |
|||
} |
|||
|
|||
if (!message.data.type) { |
|||
return console.error('Uncompliant message'); |
|||
} |
|||
|
|||
var fun = callbacks[message.data.type]; |
|||
if (fun) { |
|||
fun(message); |
|||
} else if(core.debug) { |
|||
console.error('Unkown message type', message.data.type); |
|||
} |
|||
} |
|||
|
|||
function open_page(url, msg, identifier) { |
|||
var bo = window.open(url, identifier || 'backoffice'); //unique identifier of the 2nd window
|
|||
if (!bo) { |
|||
throw _t("Please authorize popups for this window"); |
|||
} |
|||
bo.postMessage(msg, window.location.origin); //because backoffice.alert set focus
|
|||
} |
|||
|
|||
window.addEventListener('message', dispatchMessageEvent); |
|||
return { |
|||
'callbacks': callbacks, |
|||
'open_page': open_page, |
|||
}; |
|||
}); |
@ -0,0 +1,10 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<template id="assets_backend" name="backend" inherit_id="web.assets_backend"> |
|||
<xpath expr="." position="inside"> <!-- both back and POS --> |
|||
<script type="text/javascript" src="/pos_backend_communication/static/src/js/common.js"></script> |
|||
<script type="text/javascript" src="/pos_backend_communication/static/src/js/back.js"></script> |
|||
<link rel="stylesheet" href="/pos_backend_communication/static/src/css/pos_backend_communication.css"/> |
|||
</xpath> |
|||
</template> |
|||
</odoo> |
@ -0,0 +1,96 @@ |
|||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png |
|||
:target: https://www.gnu.org/licenses/agpl |
|||
:alt: License: AGPL-3 |
|||
|
|||
|
|||
=================== |
|||
POS Backend Partner |
|||
=================== |
|||
|
|||
Choose a POS customer from the backend. |
|||
|
|||
|
|||
- Replace customer selection screen in POS by a backend view. |
|||
- Perf improvement : Full customer list is not downloaded anymore by the POS at startup. |
|||
- Benefit from the backend features: advanced search, easy to extend views, etc. |
|||
|
|||
|
|||
.. figure:: ./static/description/pos_backend_partner_1.png |
|||
:width: 800px |
|||
|
|||
|
|||
.. figure:: ./static/description/pos_backend_partner_2.png |
|||
:width: 800px |
|||
|
|||
|
|||
.. figure:: ./static/description/pos_backend_partner_3.png |
|||
:width: 800px |
|||
|
|||
|
|||
|
|||
Warning about offline mode |
|||
-------------------------- |
|||
|
|||
Due to design of this module, you can't choose a **named customer** while offline but you |
|||
can still register orders with **anonymous** user. |
|||
|
|||
|
|||
Configuration |
|||
============= |
|||
|
|||
On each client's browser, during the first run, the permission for opening popup is prompted, it should be allowed. |
|||
|
|||
|
|||
Known issues / Roadmap |
|||
====================== |
|||
|
|||
* See module pos_backend_communication (OCA/POS) |
|||
* css glitch: previously clicked buttons are not reset to initial value |
|||
|
|||
|
|||
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 smash it by providing detailed and welcomed feedback. |
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Images |
|||
------ |
|||
|
|||
* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_. |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Raphaël Reverdy <raphael.reverdy@akretion.com> http://akretion.com |
|||
|
|||
Do not contact contributors directly about support or help with technical issues. |
|||
|
|||
Funders |
|||
------- |
|||
|
|||
The development of this module has been financially supported by: |
|||
|
|||
* Akretion |
|||
|
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
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. |
|||
|
|||
To contribute to this module, please visit https://odoo-community.org. |
|||
|
@ -0,0 +1,2 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from . import models |
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 Akretion (http://www.akretion.com). |
|||
# @author Raphaël Reverdy <raphael.reverdy@akretion.com> |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
{ |
|||
"name": "POS Backend Customer", |
|||
"summary": "Choose point of sale customers in backend", |
|||
"version": "10.0.1.0.2", |
|||
"category": "Point of sale", |
|||
"website": "http://www.akretion.com", |
|||
'author': "Akretion,Odoo Community Association (OCA)", |
|||
"license": "AGPL-3", |
|||
"application": False, |
|||
'installable': True, |
|||
"depends": [ |
|||
"pos_backend_communication", |
|||
], |
|||
"data": [ |
|||
'views/assets.xml', |
|||
'views/backend_partner.xml', |
|||
], |
|||
} |
@ -0,0 +1,54 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_backend_partner |
|||
# |
|||
# Translators: |
|||
# OCA Transbot <transbot@odoo-community.org>, 2018 |
|||
# enjolras <yo@miguelrevilla.com>, 2018 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 10.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2018-03-01 02:01+0000\n" |
|||
"PO-Revision-Date: 2018-03-01 02:01+0000\n" |
|||
"Last-Translator: enjolras <yo@miguelrevilla.com>, 2018\n" |
|||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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" |
|||
|
|||
#. module: pos_backend_partner |
|||
#: model:ir.ui.view,arch_db:pos_backend_partner.view_partner_tree |
|||
msgid "Choose" |
|||
msgstr "Elija" |
|||
|
|||
#. module: pos_backend_partner |
|||
#. openerp-web |
|||
#: code:addons/pos_backend_partner/static/src/js/back_partner.js:12 |
|||
#, python-format |
|||
msgid "Choose a customer" |
|||
msgstr "Elija un cliente" |
|||
|
|||
#. module: pos_backend_partner |
|||
#: model:ir.actions.act_window,name:pos_backend_partner.action_select_partner_pos |
|||
msgid "Client" |
|||
msgstr "Cliente" |
|||
|
|||
#. module: pos_backend_partner |
|||
#. openerp-web |
|||
#: code:addons/pos_backend_partner/static/src/js/pos_partner.js:19 |
|||
#, python-format |
|||
msgid "Customer set" |
|||
msgstr "Cliente establecido" |
|||
|
|||
#. module: pos_backend_partner |
|||
#: model:ir.model,name:pos_backend_partner.model_res_partner |
|||
msgid "Partner" |
|||
msgstr "Empresa" |
|||
|
|||
#. module: pos_backend_partner |
|||
#: model:ir.ui.view,arch_db:pos_backend_partner.view_partner_tree |
|||
msgid "Select as customer in point of sale" |
|||
msgstr "Seleccionar como cliente del TPV" |
@ -0,0 +1,53 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_backend_partner |
|||
# |
|||
# Translators: |
|||
# Quentin THEURET <odoo@kerpeo.com>, 2018 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 10.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2018-03-01 02:01+0000\n" |
|||
"PO-Revision-Date: 2018-03-01 02:01+0000\n" |
|||
"Last-Translator: Quentin THEURET <odoo@kerpeo.com>, 2018\n" |
|||
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" |
|||
"Language: fr\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" |
|||
|
|||
#. module: pos_backend_partner |
|||
#: model:ir.ui.view,arch_db:pos_backend_partner.view_partner_tree |
|||
msgid "Choose" |
|||
msgstr "Choisissez" |
|||
|
|||
#. module: pos_backend_partner |
|||
#. openerp-web |
|||
#: code:addons/pos_backend_partner/static/src/js/back_partner.js:12 |
|||
#, python-format |
|||
msgid "Choose a customer" |
|||
msgstr "Choisissez un client" |
|||
|
|||
#. module: pos_backend_partner |
|||
#: model:ir.actions.act_window,name:pos_backend_partner.action_select_partner_pos |
|||
msgid "Client" |
|||
msgstr "Client" |
|||
|
|||
#. module: pos_backend_partner |
|||
#. openerp-web |
|||
#: code:addons/pos_backend_partner/static/src/js/pos_partner.js:19 |
|||
#, python-format |
|||
msgid "Customer set" |
|||
msgstr "Client sélectionné" |
|||
|
|||
#. module: pos_backend_partner |
|||
#: model:ir.model,name:pos_backend_partner.model_res_partner |
|||
msgid "Partner" |
|||
msgstr "Partenaire" |
|||
|
|||
#. module: pos_backend_partner |
|||
#: model:ir.ui.view,arch_db:pos_backend_partner.view_partner_tree |
|||
msgid "Select as customer in point of sale" |
|||
msgstr "Sélectionner comme un client dans le point de vente" |
@ -0,0 +1,49 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_backend_partner |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 10.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: pos_backend_partner |
|||
#: model:ir.ui.view,arch_db:pos_backend_partner.view_partner_tree |
|||
msgid "Choose" |
|||
msgstr "" |
|||
|
|||
#. module: pos_backend_partner |
|||
#. openerp-web |
|||
#: code:addons/pos_backend_partner/static/src/js/back_partner.js:12 |
|||
#, python-format |
|||
msgid "Choose a customer" |
|||
msgstr "" |
|||
|
|||
#. module: pos_backend_partner |
|||
#: model:ir.actions.act_window,name:pos_backend_partner.action_select_partner_pos |
|||
msgid "Client" |
|||
msgstr "" |
|||
|
|||
#. module: pos_backend_partner |
|||
#. openerp-web |
|||
#: code:addons/pos_backend_partner/static/src/js/pos_partner.js:19 |
|||
#, python-format |
|||
msgid "Customer set" |
|||
msgstr "" |
|||
|
|||
#. module: pos_backend_partner |
|||
#: model:ir.model,name:pos_backend_partner.model_res_partner |
|||
msgid "Partner" |
|||
msgstr "" |
|||
|
|||
#. module: pos_backend_partner |
|||
#: model:ir.ui.view,arch_db:pos_backend_partner.view_partner_tree |
|||
msgid "Select as customer in point of sale" |
|||
msgstr "" |
|||
|
@ -0,0 +1,2 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from . import partner |
@ -0,0 +1,25 @@ |
|||
# coding: utf-8 |
|||
# Copyright 2017 Akretion (http://www.akretion.com). |
|||
# @author Raphaël Reverdy <raphael.reverdy@akretion.com> |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from openerp import models, api |
|||
|
|||
|
|||
class Partner(models.Model): |
|||
_inherit = "res.partner" |
|||
|
|||
@api.multi |
|||
def select_in_pos_current_order(self): |
|||
"""Set point of sale customer to this partner. |
|||
|
|||
Action called from view with self.id = a res.partner. |
|||
""" |
|||
return { |
|||
'type': 'ir.actions.act_tell_pos', |
|||
'payload': { |
|||
'type': 'partner.partner_selected', |
|||
'partner_id': self.id, |
|||
'name': self.name, |
|||
}, |
|||
} |
Before Width: 128 | Height: 128 | Size: 9.2 KiB After Width: 128 | Height: 128 | Size: 9.2 KiB |
After Width: 2048 | Height: 1536 | Size: 197 KiB |
After Width: 2048 | Height: 1536 | Size: 209 KiB |
After Width: 2048 | Height: 1536 | Size: 196 KiB |
@ -0,0 +1,11 @@ |
|||
th[data-id="select_in_pos_current_order"] { |
|||
width: 0; |
|||
margin: 0; |
|||
} |
|||
td[data-field="select_in_pos_current_order"] > button { |
|||
display:none; |
|||
} |
|||
|
|||
.pos_backend_communication td[data-field="select_in_pos_current_order"] > button { |
|||
display:block; |
|||
} |
@ -0,0 +1,17 @@ |
|||
'use strict'; |
|||
odoo.define('pos_backend_partner.partner_back', function (require) { |
|||
var translation = require('web.translation'); |
|||
var _t = translation._t; |
|||
|
|||
var tools = require('pos_backend_communication.back'); |
|||
|
|||
if (tools.is_tied_to_pos()) { |
|||
tools.callbacks['partner.choose'] = function() { |
|||
//get focus with alert
|
|||
//TODO: replace with notifications
|
|||
alert(_t('Choose a customer')); |
|||
}; |
|||
//tell the POS we are ready to receive
|
|||
tools.sendMessage({type: 'partner.ready'}); |
|||
} |
|||
}); |
@ -0,0 +1,89 @@ |
|||
'use strict'; |
|||
|
|||
odoo.define('pos_backend_partner.partner_pos', function (require) { |
|||
var tools = require('pos_backend_communication.tools'); |
|||
var session = require('web.session'); |
|||
var ProductScreenWidget = require('point_of_sale.screens'); |
|||
var translation = require('web.translation'); |
|||
var _t = translation._t; |
|||
var action_url = null; |
|||
var pos_instance = null; |
|||
|
|||
function set_client(message) { |
|||
var data = message.data; |
|||
var partner_info = { |
|||
'id': parseInt(data.partner_id, 10), |
|||
'name': data.name |
|||
}; |
|||
pos_instance.get('selectedOrder').set_client(partner_info); |
|||
alert(_t('Customer set')); //try to get the focus back
|
|||
} |
|||
|
|||
function open_backend(message) { |
|||
console.log('open backend partner'); |
|||
//lookup action_id
|
|||
action_url = action_url || session.rpc( |
|||
'/web/action/load', { "action_id":"pos_backend_partner.action_select_partner_pos"}) |
|||
.then(function (e) { return e.id; }); |
|||
|
|||
action_url.then(function (action_id) { |
|||
var url = "/web#view_type=list&model=res.partner&action=" + action_id; |
|||
var msg = {'type': 'partner.choose'}; |
|||
tools.open_page(url, msg, 'partner'); |
|||
}); |
|||
} |
|||
|
|||
// Bind customer button in main screen
|
|||
ProductScreenWidget.ActionpadWidget.include({ |
|||
init: function(parent, options) { |
|||
this._super(parent, options); |
|||
pos_instance = this.pos; |
|||
}, |
|||
renderElement: function() { |
|||
var self = this; |
|||
this._super(); |
|||
this.$('.set-customer').unbind('click'); |
|||
this.$('.set-customer').click(function(){ |
|||
open_backend(); |
|||
}); |
|||
} |
|||
}); |
|||
|
|||
// Bind customer button in payement screen
|
|||
ProductScreenWidget.PaymentScreenWidget.include({ |
|||
init: function(parent, options) { |
|||
this._super(parent, options); |
|||
pos_instance = this.pos; |
|||
}, |
|||
click_set_customer: function() { |
|||
open_backend(); |
|||
} |
|||
}); |
|||
|
|||
tools.callbacks['partner.partner_selected'] = set_client; |
|||
|
|||
return { |
|||
callbacks: tools.callbacks |
|||
}; |
|||
}); |
|||
|
|||
odoo.define('pos_backend_partner.prevent_model_load', function (require) { |
|||
// Prevent res.partner to be loaded at startup of the POS
|
|||
// we load partners from the back office
|
|||
|
|||
//huge perf improvement server side AND client side AND network side
|
|||
// we don't need it since the client is picked from the backoffice
|
|||
var pos_models = require('point_of_sale.models'); |
|||
var partnerModelId = null; |
|||
pos_models.PosModel.prototype.models.some(function (m, idx) { |
|||
if (m.model !== "res.partner") |
|||
return false; |
|||
partnerModelId = idx; //got her !
|
|||
return true; //exit early
|
|||
}); |
|||
if (partnerModelId) { |
|||
pos_models.PosModel.prototype.models.splice(partnerModelId, 1); |
|||
//remove the model without changing the reference to the array
|
|||
} |
|||
}); |
|||
|
@ -0,0 +1,18 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<template id="assets" name="pos partner" inherit_id="point_of_sale.assets"> |
|||
<xpath expr="." position="inside"> |
|||
<script type="text/javascript" src="/pos_backend_partner/static/src/js/pos_partner.js"></script> |
|||
</xpath> |
|||
</template> |
|||
|
|||
<template id="assets_backend" name="back partner " inherit_id="web.assets_backend"> |
|||
<xpath expr="." position="inside"> <!-- both back and POS --> |
|||
<script type="text/javascript" src="/pos_backend_partner/static/src/js/back_partner.js"></script> |
|||
|
|||
<link rel="stylesheet" href="/pos_backend_partner/static/src/css/pos_backend_partner.css"/> |
|||
|
|||
</xpath> |
|||
</template> |
|||
|
|||
</odoo> |
@ -0,0 +1,25 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
|
|||
<record id="view_partner_tree" model="ir.ui.view"> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_partner_tree"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="display_name" position="before"> |
|||
<button string="Choose" |
|||
type="object" name="select_in_pos_current_order" |
|||
help="Select as customer in point of sale"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_select_partner_pos" model="ir.actions.act_window"> |
|||
<field name="name">Client</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">res.partner</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="domain">[('customer', '=', True)]</field> |
|||
<field name="context">{}</field> |
|||
</record> |
|||
|
|||
</odoo> |
@ -1,161 +0,0 @@ |
|||
====================== |
|||
POS cash in-out reason |
|||
====================== |
|||
|
|||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
!! This file is generated by oca-gen-addon-readme !! |
|||
!! changes will be overwritten. !! |
|||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
|
|||
.. |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/12.0/pos_cash_move_reason |
|||
:alt: OCA/pos |
|||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png |
|||
:target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_cash_move_reason |
|||
:alt: Translate me on Weblate |
|||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png |
|||
:target: https://runbot.odoo-community.org/runbot/184/12.0 |
|||
:alt: Try me on Runbot |
|||
|
|||
|badge1| |badge2| |badge3| |badge4| |badge5| |
|||
|
|||
This module allow to define some reasons for the functionality of |
|||
"Put Money In" and "Take Money Out" available in point of sale session. |
|||
|
|||
So, with this module it's possible to impact directly an expense or income |
|||
account which is defined on the related reasons and create according |
|||
accounting entries. |
|||
|
|||
**Typical Use Case (not exhaustive)** |
|||
|
|||
* You want to track **Bank deposit** moves, using an intermediate |
|||
bank account named 'Cash Awaiting Bank Deposit'. |
|||
(In France, for instance, "581 - Espèce en attente d'encaissement") |
|||
|
|||
* You want to allow payments from Cash Journal to pay recurring |
|||
little expenses. (Gasoline, parking meter, etc.) |
|||
|
|||
**Table of contents** |
|||
|
|||
.. contents:: |
|||
:local: |
|||
|
|||
Configuration |
|||
============= |
|||
|
|||
* Go to 'Point of Sale' / 'Configuration' / 'Move Reason' |
|||
|
|||
.. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_cash_move_reason/static/description/pos_cash_move_tree.png |
|||
:alt: PoS Move Reasons List |
|||
|
|||
* Create or update your PoS move Reasons. |
|||
* for each reason, you can mention the concerned journal(s), (Generally the |
|||
Cash Journal), and if it is a reason to 'put in' and / or to 'take out' |
|||
Money. |
|||
|
|||
.. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_cash_move_reason/static/description/pos_cash_move_form.png |
|||
:alt: PoS Move Reason |
|||
|
|||
**Note** |
|||
|
|||
You should have checked first 'Used in Point of Sale' for the Journals you want |
|||
to enable the feature. |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
* Go to your current session |
|||
|
|||
* Click on the button "Put Money In" or "Take Money Out" |
|||
|
|||
.. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_cash_move_reason/static/description/pos_session_form.png |
|||
|
|||
* Select the reason, the journal, the amount, and optionaly an extra |
|||
description |
|||
|
|||
.. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_cash_move_reason/static/description/wizard_pos_move_reason_form.png |
|||
|
|||
* When closing the session, an account move will be created, with two lines, |
|||
one with the default journal account, and one with the expense / income |
|||
reason account. |
|||
|
|||
.. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_cash_move_reason/static/description/account_move_form.png |
|||
|
|||
Known issues / Roadmap |
|||
====================== |
|||
|
|||
As it is not possible to disable actions on Odoo, a new technical group is |
|||
added by this module, named 'Use Old PoS 'Put or Take Money' Actions', to |
|||
hide native obsolete actions available on the model ``pos.session`` |
|||
(the two buttons "Take Money Out" and "Put Money In") |
|||
|
|||
Changelog |
|||
========= |
|||
|
|||
12.0.3.0.0 (2019-08-13) |
|||
~~~~~~~~~~~~~~~~~~~~~~~ |
|||
|
|||
* [MIG] Port module to version 12.0. |
|||
* [REF] Don't use ``product.product`` model for Reasons, because Odoo remove |
|||
the fields ``expense_pdt`` ``and income_pdt`` from the model. |
|||
Use instead a new model ``pos.move.reason`` for this purpose. |
|||
* [REF] Doesn't inherit from ``cash.box.in`` and ``cash.box.out`` model, |
|||
as there are bad designed and doesn't allow clean inheritance. |
|||
Instead, use new transient model ``wizard.pos.move.reason``. |
|||
|
|||
8.0.2.0.0 (2018-06-25) |
|||
~~~~~~~~~~~~~~~~~~~~~~ |
|||
|
|||
* [REF] Minor code refactoring. |
|||
|
|||
8.0.1.0.0 (2017-06-08) |
|||
~~~~~~~~~~~~~~~~~~~~~~ |
|||
|
|||
* First Version of the 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 smashing it by providing a detailed and welcomed |
|||
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_cash_move_reason%0Aversion:%2012.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 |
|||
~~~~~~~ |
|||
|
|||
* ACSONE SA/NV |
|||
* 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. |
|||
|
|||
This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/12.0/pos_cash_move_reason>`_ project on GitHub. |
|||
|
|||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
@ -1,5 +0,0 @@ |
|||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import models |
|||
from . import wizard |
@ -1,28 +0,0 @@ |
|||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
{ |
|||
'name': "POS cash in-out reason", |
|||
'summary': """""", |
|||
'author': 'ACSONE SA/NV,' |
|||
'GRAP,' |
|||
'Odoo Community Association (OCA)', |
|||
'website': "https://www.github.com/OCA/pos", |
|||
'category': 'Point Of sale', |
|||
'version': '12.0.3.0.2', |
|||
'license': 'AGPL-3', |
|||
'depends': [ |
|||
'point_of_sale', |
|||
], |
|||
'data': [ |
|||
'security/ir_rule.xml', |
|||
'security/res_groups.xml', |
|||
'security/ir.model.access.csv', |
|||
'views/view_pos_move_reason.xml', |
|||
'views/view_pos_session.xml', |
|||
'wizard/wizard_pos_move_reason.xml', |
|||
], |
|||
'demo': [ |
|||
'demo/account_account.xml', |
|||
'demo/pos_move_reason.xml', |
|||
], |
|||
} |
@ -1,21 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!-- |
|||
Copyright (C) 2018 - 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="bank_deposit_account" model="account.account"> |
|||
<field name="code">101505</field> |
|||
<field name="name">Cash Awaiting Bank Deposit</field> |
|||
<field name="user_type_id" ref="account.data_account_type_liquidity"/> |
|||
</record> |
|||
|
|||
<record id="gazoline_expense_account" model="account.account"> |
|||
<field name="code">221500</field> |
|||
<field name="name">Gazoline Expense</field> |
|||
<field name="user_type_id" ref="account.data_account_type_expenses"/> |
|||
</record> |
|||
|
|||
</odoo> |
@ -1,33 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!-- |
|||
Copyright (C) 2018 - 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="bank_out_reason" model="pos.move.reason"> |
|||
<field name="name">Bank Deposit</field> |
|||
<field name="is_income_reason" eval="False" /> |
|||
<field name="is_expense_reason" eval="True"/> |
|||
<field name="expense_account_id" ref="bank_deposit_account"/> |
|||
<field name="journal_ids" model="account.journal" search="[ |
|||
('type', '=', 'cash'), |
|||
('company_id', '=', obj().env.ref('base.main_company').id), |
|||
]"/> |
|||
<field name="company_id" ref="base.main_company"/> |
|||
</record> |
|||
|
|||
<record id="gasoline_out_reason" model="pos.move.reason"> |
|||
<field name="name">Gazoline Expense</field> |
|||
<field name="is_income_reason" eval="False" /> |
|||
<field name="is_expense_reason" eval="True"/> |
|||
<field name="expense_account_id" ref="gazoline_expense_account"/> |
|||
<field name="journal_ids" model="account.journal" search="[ |
|||
('type', '=', 'cash'), |
|||
('company_id', '=', obj().env.ref('base.main_company').id), |
|||
]"/> |
|||
<field name="company_id" ref="base.main_company"/> |
|||
</record> |
|||
|
|||
</odoo> |
@ -1,231 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_cash_move_reason |
|||
# |
|||
# Translators: |
|||
# OCA Transbot <transbot@odoo-community.org>, 2017 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2017-06-09 03:25+0000\n" |
|||
"PO-Revision-Date: 2017-06-09 03:25+0000\n" |
|||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n" |
|||
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" |
|||
"Language: ar\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " |
|||
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_session_form |
|||
msgid "" |
|||
"<span class=\"o_stat_text\">Put</span>\n" |
|||
" <span class=\"o_stat_text\">Money In</span>" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_session_form |
|||
msgid "" |
|||
"<span class=\"o_stat_text\">Take</span>\n" |
|||
" <span class=\"o_stat_text\">Money Out</span>" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__journal_ids |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__journal_ids |
|||
msgid "Accounting Journals" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__active |
|||
msgid "Active" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__amount |
|||
msgid "Amount" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Apply" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__statement_id |
|||
msgid "Bank Statement" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Cancel" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__company_id |
|||
msgid "Company" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__create_uid |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__create_uid |
|||
msgid "Created by" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__create_date |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__create_date |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__session_id |
|||
msgid "Current Session" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Describe why you take money from the cash register" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_session__display_move_reason_expense |
|||
msgid "Display Move Reason Expense" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_session__display_move_reason_income |
|||
msgid "Display Move Reason Income" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__display_name |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__display_name |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__expense_account_id |
|||
msgid "Expense Account" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Fill in this form if you put money in the cash register" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__id |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__id |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__income_account_id |
|||
msgid "Income Account" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: code:addons/pos_cash_move_reason/wizard/wizard_pos_move_reason.py:67 |
|||
#, python-format |
|||
msgid "Invalid Amount" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__is_expense_reason |
|||
msgid "Is Expense Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__is_income_reason |
|||
msgid "Is Income Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__journal_id |
|||
msgid "Journal" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason____last_update |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason____last_update |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__write_uid |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__write_uid |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__write_date |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__write_date |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__move_reason_id |
|||
#, fuzzy |
|||
msgid "Move Reason" |
|||
msgstr "السبب" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.actions.act_window,name:pos_cash_move_reason.action_pos_move_reason |
|||
#: model:ir.actions.act_window,name:pos_cash_move_reason.action_wizard_pos_move_reason |
|||
#: model:ir.ui.menu,name:pos_cash_move_reason.menu_pos_move_reason |
|||
#, fuzzy |
|||
msgid "Move Reasons" |
|||
msgstr "السبب" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__move_type |
|||
msgid "Move type" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__name |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_move_reason_form |
|||
msgid "Name" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_pos_move_reason |
|||
msgid "PoS - Move In / Out Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_wizard_pos_move_reason |
|||
msgid "PoS Move Reasons Wizard" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_pos_session |
|||
msgid "Point of Sale Session" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: selection:wizard.pos.move.reason,move_type:0 |
|||
msgid "Put Money In" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__name |
|||
msgid "Reason" |
|||
msgstr "السبب" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: selection:wizard.pos.move.reason,move_type:0 |
|||
msgid "Take Money Out" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:res.groups,name:pos_cash_move_reason.group_pos_old_actions |
|||
msgid "Use Old PoS 'Put or Take Money' Actions" |
|||
msgstr "" |
|||
|
|||
#~ msgid "Description" |
|||
#~ msgstr "الوصف" |
@ -1,228 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_cash_move_reason |
|||
# |
|||
# Translators: |
|||
# OCA Transbot <transbot@odoo-community.org>, 2017 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2017-06-09 03:25+0000\n" |
|||
"PO-Revision-Date: 2017-06-09 03:25+0000\n" |
|||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n" |
|||
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n" |
|||
"Language: bg\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" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_session_form |
|||
msgid "" |
|||
"<span class=\"o_stat_text\">Put</span>\n" |
|||
" <span class=\"o_stat_text\">Money In</span>" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_session_form |
|||
msgid "" |
|||
"<span class=\"o_stat_text\">Take</span>\n" |
|||
" <span class=\"o_stat_text\">Money Out</span>" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__journal_ids |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__journal_ids |
|||
msgid "Accounting Journals" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__active |
|||
msgid "Active" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__amount |
|||
msgid "Amount" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Apply" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__statement_id |
|||
msgid "Bank Statement" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Cancel" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__company_id |
|||
msgid "Company" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__create_uid |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__create_uid |
|||
msgid "Created by" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__create_date |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__create_date |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__session_id |
|||
msgid "Current Session" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Describe why you take money from the cash register" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_session__display_move_reason_expense |
|||
msgid "Display Move Reason Expense" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_session__display_move_reason_income |
|||
msgid "Display Move Reason Income" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__display_name |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__display_name |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__expense_account_id |
|||
msgid "Expense Account" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Fill in this form if you put money in the cash register" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__id |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__id |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__income_account_id |
|||
msgid "Income Account" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: code:addons/pos_cash_move_reason/wizard/wizard_pos_move_reason.py:67 |
|||
#, python-format |
|||
msgid "Invalid Amount" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__is_expense_reason |
|||
msgid "Is Expense Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__is_income_reason |
|||
msgid "Is Income Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__journal_id |
|||
msgid "Journal" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason____last_update |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason____last_update |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__write_uid |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__write_uid |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__write_date |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__write_date |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__move_reason_id |
|||
msgid "Move Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.actions.act_window,name:pos_cash_move_reason.action_pos_move_reason |
|||
#: model:ir.actions.act_window,name:pos_cash_move_reason.action_wizard_pos_move_reason |
|||
#: model:ir.ui.menu,name:pos_cash_move_reason.menu_pos_move_reason |
|||
msgid "Move Reasons" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__move_type |
|||
msgid "Move type" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__name |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_move_reason_form |
|||
msgid "Name" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_pos_move_reason |
|||
msgid "PoS - Move In / Out Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_wizard_pos_move_reason |
|||
msgid "PoS Move Reasons Wizard" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_pos_session |
|||
msgid "Point of Sale Session" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: selection:wizard.pos.move.reason,move_type:0 |
|||
msgid "Put Money In" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__name |
|||
msgid "Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: selection:wizard.pos.move.reason,move_type:0 |
|||
msgid "Take Money Out" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:res.groups,name:pos_cash_move_reason.group_pos_old_actions |
|||
msgid "Use Old PoS 'Put or Take Money' Actions" |
|||
msgstr "" |
|||
|
|||
#~ msgid "Description" |
|||
#~ msgstr "Описание" |
@ -1,231 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_cash_move_reason |
|||
# |
|||
# Translators: |
|||
# OCA Transbot <transbot@odoo-community.org>, 2017 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2017-06-09 03:25+0000\n" |
|||
"PO-Revision-Date: 2017-06-09 03:25+0000\n" |
|||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n" |
|||
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n" |
|||
"Language: bs\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" |
|||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_session_form |
|||
msgid "" |
|||
"<span class=\"o_stat_text\">Put</span>\n" |
|||
" <span class=\"o_stat_text\">Money In</span>" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_session_form |
|||
msgid "" |
|||
"<span class=\"o_stat_text\">Take</span>\n" |
|||
" <span class=\"o_stat_text\">Money Out</span>" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__journal_ids |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__journal_ids |
|||
msgid "Accounting Journals" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__active |
|||
msgid "Active" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__amount |
|||
msgid "Amount" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Apply" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__statement_id |
|||
msgid "Bank Statement" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Cancel" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__company_id |
|||
msgid "Company" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__create_uid |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__create_uid |
|||
msgid "Created by" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__create_date |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__create_date |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__session_id |
|||
msgid "Current Session" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Describe why you take money from the cash register" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_session__display_move_reason_expense |
|||
msgid "Display Move Reason Expense" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_session__display_move_reason_income |
|||
msgid "Display Move Reason Income" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__display_name |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__display_name |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__expense_account_id |
|||
msgid "Expense Account" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Fill in this form if you put money in the cash register" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__id |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__id |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__income_account_id |
|||
msgid "Income Account" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: code:addons/pos_cash_move_reason/wizard/wizard_pos_move_reason.py:67 |
|||
#, python-format |
|||
msgid "Invalid Amount" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__is_expense_reason |
|||
msgid "Is Expense Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__is_income_reason |
|||
msgid "Is Income Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__journal_id |
|||
msgid "Journal" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason____last_update |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason____last_update |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__write_uid |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__write_uid |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__write_date |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__write_date |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__move_reason_id |
|||
#, fuzzy |
|||
msgid "Move Reason" |
|||
msgstr "Razlog" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.actions.act_window,name:pos_cash_move_reason.action_pos_move_reason |
|||
#: model:ir.actions.act_window,name:pos_cash_move_reason.action_wizard_pos_move_reason |
|||
#: model:ir.ui.menu,name:pos_cash_move_reason.menu_pos_move_reason |
|||
#, fuzzy |
|||
msgid "Move Reasons" |
|||
msgstr "Razlog" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__move_type |
|||
msgid "Move type" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__name |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_move_reason_form |
|||
msgid "Name" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_pos_move_reason |
|||
msgid "PoS - Move In / Out Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_wizard_pos_move_reason |
|||
msgid "PoS Move Reasons Wizard" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_pos_session |
|||
msgid "Point of Sale Session" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: selection:wizard.pos.move.reason,move_type:0 |
|||
msgid "Put Money In" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__name |
|||
msgid "Reason" |
|||
msgstr "Razlog" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: selection:wizard.pos.move.reason,move_type:0 |
|||
msgid "Take Money Out" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:res.groups,name:pos_cash_move_reason.group_pos_old_actions |
|||
msgid "Use Old PoS 'Put or Take Money' Actions" |
|||
msgstr "" |
|||
|
|||
#~ msgid "Description" |
|||
#~ msgstr "Opis" |
@ -1,231 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_cash_move_reason |
|||
# |
|||
# Translators: |
|||
# Marc Tormo i Bochaca <mtbochaca@gmail.com>, 2017 |
|||
# OCA Transbot <transbot@odoo-community.org>, 2017 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2017-06-09 03:25+0000\n" |
|||
"PO-Revision-Date: 2017-06-09 03:25+0000\n" |
|||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\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" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_session_form |
|||
msgid "" |
|||
"<span class=\"o_stat_text\">Put</span>\n" |
|||
" <span class=\"o_stat_text\">Money In</span>" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_session_form |
|||
msgid "" |
|||
"<span class=\"o_stat_text\">Take</span>\n" |
|||
" <span class=\"o_stat_text\">Money Out</span>" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__journal_ids |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__journal_ids |
|||
msgid "Accounting Journals" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__active |
|||
msgid "Active" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__amount |
|||
msgid "Amount" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Apply" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__statement_id |
|||
msgid "Bank Statement" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Cancel" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__company_id |
|||
msgid "Company" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__create_uid |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__create_uid |
|||
msgid "Created by" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__create_date |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__create_date |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__session_id |
|||
msgid "Current Session" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Describe why you take money from the cash register" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_session__display_move_reason_expense |
|||
msgid "Display Move Reason Expense" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_session__display_move_reason_income |
|||
msgid "Display Move Reason Income" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__display_name |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__display_name |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__expense_account_id |
|||
msgid "Expense Account" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Fill in this form if you put money in the cash register" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__id |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__id |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__income_account_id |
|||
msgid "Income Account" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: code:addons/pos_cash_move_reason/wizard/wizard_pos_move_reason.py:67 |
|||
#, python-format |
|||
msgid "Invalid Amount" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__is_expense_reason |
|||
msgid "Is Expense Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__is_income_reason |
|||
msgid "Is Income Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__journal_id |
|||
msgid "Journal" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason____last_update |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason____last_update |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__write_uid |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__write_uid |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__write_date |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__write_date |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__move_reason_id |
|||
#, fuzzy |
|||
msgid "Move Reason" |
|||
msgstr "Raó" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.actions.act_window,name:pos_cash_move_reason.action_pos_move_reason |
|||
#: model:ir.actions.act_window,name:pos_cash_move_reason.action_wizard_pos_move_reason |
|||
#: model:ir.ui.menu,name:pos_cash_move_reason.menu_pos_move_reason |
|||
#, fuzzy |
|||
msgid "Move Reasons" |
|||
msgstr "Raó" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__move_type |
|||
msgid "Move type" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__name |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_move_reason_form |
|||
msgid "Name" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_pos_move_reason |
|||
msgid "PoS - Move In / Out Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_wizard_pos_move_reason |
|||
msgid "PoS Move Reasons Wizard" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_pos_session |
|||
msgid "Point of Sale Session" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: selection:wizard.pos.move.reason,move_type:0 |
|||
msgid "Put Money In" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__name |
|||
msgid "Reason" |
|||
msgstr "Raó" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: selection:wizard.pos.move.reason,move_type:0 |
|||
msgid "Take Money Out" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:res.groups,name:pos_cash_move_reason.group_pos_old_actions |
|||
msgid "Use Old PoS 'Put or Take Money' Actions" |
|||
msgstr "" |
|||
|
|||
#~ msgid "Description" |
|||
#~ msgstr "Descripció" |
@ -1,229 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_cash_move_reason |
|||
# |
|||
# Translators: |
|||
# Carlos Hormigo, 2018 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2018-02-28 18:30+0000\n" |
|||
"PO-Revision-Date: 2018-02-28 18:30+0000\n" |
|||
"Last-Translator: Carlos Hormigo, 2018\n" |
|||
"Language-Team: Catalan (Spain) (https://www.transifex.com/oca/teams/23907/" |
|||
"ca_ES/)\n" |
|||
"Language: ca_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" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_session_form |
|||
msgid "" |
|||
"<span class=\"o_stat_text\">Put</span>\n" |
|||
" <span class=\"o_stat_text\">Money In</span>" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_session_form |
|||
msgid "" |
|||
"<span class=\"o_stat_text\">Take</span>\n" |
|||
" <span class=\"o_stat_text\">Money Out</span>" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__journal_ids |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__journal_ids |
|||
msgid "Accounting Journals" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__active |
|||
msgid "Active" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__amount |
|||
msgid "Amount" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Apply" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__statement_id |
|||
msgid "Bank Statement" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Cancel" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__company_id |
|||
msgid "Company" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__create_uid |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__create_uid |
|||
msgid "Created by" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__create_date |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__create_date |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__session_id |
|||
msgid "Current Session" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Describe why you take money from the cash register" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_session__display_move_reason_expense |
|||
msgid "Display Move Reason Expense" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_session__display_move_reason_income |
|||
msgid "Display Move Reason Income" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__display_name |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__display_name |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__expense_account_id |
|||
msgid "Expense Account" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_wizard_pos_move_reason_form |
|||
msgid "Fill in this form if you put money in the cash register" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__id |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__id |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__income_account_id |
|||
msgid "Income Account" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: code:addons/pos_cash_move_reason/wizard/wizard_pos_move_reason.py:67 |
|||
#, python-format |
|||
msgid "Invalid Amount" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__is_expense_reason |
|||
msgid "Is Expense Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__is_income_reason |
|||
msgid "Is Income Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__journal_id |
|||
msgid "Journal" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason____last_update |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason____last_update |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__write_uid |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__write_uid |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__write_date |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__write_date |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__move_reason_id |
|||
msgid "Move Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.actions.act_window,name:pos_cash_move_reason.action_pos_move_reason |
|||
#: model:ir.actions.act_window,name:pos_cash_move_reason.action_wizard_pos_move_reason |
|||
#: model:ir.ui.menu,name:pos_cash_move_reason.menu_pos_move_reason |
|||
msgid "Move Reasons" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__move_type |
|||
msgid "Move type" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_pos_move_reason__name |
|||
#: model_terms:ir.ui.view,arch_db:pos_cash_move_reason.view_pos_move_reason_form |
|||
msgid "Name" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_pos_move_reason |
|||
msgid "PoS - Move In / Out Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_wizard_pos_move_reason |
|||
msgid "PoS Move Reasons Wizard" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model,name:pos_cash_move_reason.model_pos_session |
|||
msgid "Point of Sale Session" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: selection:wizard.pos.move.reason,move_type:0 |
|||
msgid "Put Money In" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:ir.model.fields,field_description:pos_cash_move_reason.field_wizard_pos_move_reason__name |
|||
msgid "Reason" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: selection:wizard.pos.move.reason,move_type:0 |
|||
msgid "Take Money Out" |
|||
msgstr "" |
|||
|
|||
#. module: pos_cash_move_reason |
|||
#: model:res.groups,name:pos_cash_move_reason.group_pos_old_actions |
|||
msgid "Use Old PoS 'Put or Take Money' Actions" |
|||
msgstr "" |
|||
|
|||
#~ msgid "Description" |
|||
#~ msgstr "Descripció" |