From 7c8f07d3fd4524fff47ed08a9e2429f44bab7c18 Mon Sep 17 00:00:00 2001
From: oca-git-bot
Date: Sun, 1 Nov 2020 22:31:41 +0100
Subject: [PATCH 001/409] [IMP] update dotfiles [ci skip]
---
.copier-answers.yml | 3 ++-
.pre-commit-config.yaml | 17 +++++++++++++----
.prettierrc.yml | 2 +-
.pylintrc | 1 +
.pylintrc-mandatory | 1 +
5 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/.copier-answers.yml b/.copier-answers.yml
index 156f11344d2..ff9da41a1c8 100644
--- a/.copier-answers.yml
+++ b/.copier-answers.yml
@@ -1,7 +1,8 @@
# Do NOT update manually; changes here will be overwritten by Copier
-_commit: v1.0.2
+_commit: v1.0.3
_src_path: gh:oca/oca-addons-repo-template
dependency_installation_mode: PIP
+generate_requirements_txt: true
include_wkhtmltopdf: false
odoo_version: 14.0
rebel_module_groups: []
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b1dce7938be..f3596c8b3b1 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -26,10 +26,12 @@ repos:
language: fail
files: "\\.rej$"
- repo: https://github.com/oca/maintainer-tools
- rev: 2c66e72
+ rev: 1b5c7ad
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
+ - id: oca-fix-manifest-website
+ args: ["https://github.com/OCA/stock-logistics-barcode"]
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
@@ -39,12 +41,13 @@ repos:
rev: 20.8b1
hooks:
- id: black
- - repo: https://github.com/prettier/prettier
- rev: 2.1.2
+ - repo: https://github.com/prettier/pre-commit
+ rev: v2.1.2
hooks:
- id: prettier
name: prettier + plugin-xml
additional_dependencies:
+ - "prettier@2.1.2"
- "@prettier/plugin-xml@0.12.0"
args:
- --plugin=@prettier/plugin-xml
@@ -91,9 +94,15 @@ repos:
- --settings=.
exclude: /__init__\.py$
- repo: https://github.com/acsone/setuptools-odoo
- rev: 2.5.10
+ rev: 2.6.0
hooks:
- id: setuptools-odoo-make-default
+ - id: setuptools-odoo-get-requirements
+ args:
+ - --output
+ - requirements.txt
+ - --header
+ - "# generated from manifests external_dependencies"
- repo: https://gitlab.com/PyCQA/flake8
rev: 3.8.3
hooks:
diff --git a/.prettierrc.yml b/.prettierrc.yml
index fc5f3a7c4d4..5b6d4b361ac 100644
--- a/.prettierrc.yml
+++ b/.prettierrc.yml
@@ -5,4 +5,4 @@ printWidth: 88
proseWrap: always
semi: true
trailingComma: "es5"
-xmlWhitespaceSensitivity: "ignore"
+xmlWhitespaceSensitivity: "strict"
diff --git a/.pylintrc b/.pylintrc
index acbffe7b491..e33958833ed 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -28,6 +28,7 @@ enable=anomalous-backslash-in-string,
class-camelcase,
dangerous-default-value,
dangerous-view-replace-wo-priority,
+ development-status-allowed,
duplicate-id-csv,
duplicate-key,
duplicate-xml-fields,
diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory
index 1d979ab4696..08bca3cefef 100644
--- a/.pylintrc-mandatory
+++ b/.pylintrc-mandatory
@@ -21,6 +21,7 @@ enable=anomalous-backslash-in-string,
class-camelcase,
dangerous-default-value,
dangerous-view-replace-wo-priority,
+ development-status-allowed,
duplicate-id-csv,
duplicate-key,
duplicate-xml-fields,
From 9828efb9e6357e300e1c3f7b6cd1b7c1e4ce1d64 Mon Sep 17 00:00:00 2001
From: oca-git-bot
Date: Fri, 11 Dec 2020 20:19:48 +0100
Subject: [PATCH 002/409] [IMP] update dotfiles [ci skip]
---
.copier-answers.yml | 2 +-
.github/workflows/pre-commit.yml | 13 +++++++++++++
.pre-commit-config.yaml | 6 ++++--
.travis.yml | 7 -------
4 files changed, 18 insertions(+), 10 deletions(-)
create mode 100644 .github/workflows/pre-commit.yml
diff --git a/.copier-answers.yml b/.copier-answers.yml
index ff9da41a1c8..a8a37a7f0dd 100644
--- a/.copier-answers.yml
+++ b/.copier-answers.yml
@@ -1,5 +1,5 @@
# Do NOT update manually; changes here will be overwritten by Copier
-_commit: v1.0.3
+_commit: v1.1.1
_src_path: gh:oca/oca-addons-repo-template
dependency_installation_mode: PIP
generate_requirements_txt: true
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
new file mode 100644
index 00000000000..335381cb730
--- /dev/null
+++ b/.github/workflows/pre-commit.yml
@@ -0,0 +1,13 @@
+name: pre-commit
+
+on:
+ pull_request:
+ push:
+
+jobs:
+ pre-commit:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+ - uses: pre-commit/action@v2.0.0
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f3596c8b3b1..caf6f52276f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -4,6 +4,8 @@ exclude: |
# END NOT INSTALLABLE ADDONS
# Files and folders generated by bots, to avoid loops
^setup/|/static/description/index\.html$|
+ # We don't want to mess with tool-generated files
+ .svg$|
# Maybe reactivate this when all README files include prettier ignore tags?
^README\.md$|
# Library files can have extraneous formatting (even minimized)
@@ -26,7 +28,7 @@ repos:
language: fail
files: "\\.rej$"
- repo: https://github.com/oca/maintainer-tools
- rev: 1b5c7ad
+ rev: ab1d7f6
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
@@ -41,7 +43,7 @@ repos:
rev: 20.8b1
hooks:
- id: black
- - repo: https://github.com/prettier/pre-commit
+ - repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.1.2
hooks:
- id: prettier
diff --git a/.travis.yml b/.travis.yml
index 4b5ed106df9..5e8e3a666b3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,17 +14,10 @@ addons:
- expect-dev # provides unbuffer utility
stages:
- - linting
- test
jobs:
include:
- - stage: linting
- name: "pre-commit"
- install: pip install pre-commit
- script: pre-commit run --all --show-diff-on-failure --verbose --color always
- after_success:
- before_install:
- stage: test
env:
- TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT="1"
From 40544d362904c4c02c7d9456a4632d97e1a484e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A0=20Gil=20Sorribes?=
Date: Thu, 14 Nov 2019 13:13:02 +0100
Subject: [PATCH 003/409] [11.0][ADD] stock_barcodes_automatic_entry
---
stock_barcodes_automatic_entry/README.rst | 104 ++++
stock_barcodes_automatic_entry/__init__.py | 0
.../__manifest__.py | 23 +
.../readme/CONTRIBUTORS.rst | 1 +
.../readme/DESCRIPTION.rst | 2 +
.../readme/USAGE.rst | 18 +
.../static/description/icon.png | Bin 0 -> 9455 bytes
.../static/description/index.html | 443 ++++++++++++++++++
.../static/src/css/button_style.css | 3 +
.../static/src/js/stock_barcodes.js | 19 +
.../views/assets.xml | 11 +
11 files changed, 624 insertions(+)
create mode 100644 stock_barcodes_automatic_entry/README.rst
create mode 100644 stock_barcodes_automatic_entry/__init__.py
create mode 100644 stock_barcodes_automatic_entry/__manifest__.py
create mode 100644 stock_barcodes_automatic_entry/readme/CONTRIBUTORS.rst
create mode 100644 stock_barcodes_automatic_entry/readme/DESCRIPTION.rst
create mode 100644 stock_barcodes_automatic_entry/readme/USAGE.rst
create mode 100644 stock_barcodes_automatic_entry/static/description/icon.png
create mode 100644 stock_barcodes_automatic_entry/static/description/index.html
create mode 100644 stock_barcodes_automatic_entry/static/src/css/button_style.css
create mode 100644 stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js
create mode 100644 stock_barcodes_automatic_entry/views/assets.xml
diff --git a/stock_barcodes_automatic_entry/README.rst b/stock_barcodes_automatic_entry/README.rst
new file mode 100644
index 00000000000..ea438592f42
--- /dev/null
+++ b/stock_barcodes_automatic_entry/README.rst
@@ -0,0 +1,104 @@
+==============================
+Stock Barcodes Automatic Entry
+==============================
+
+.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! 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%2Fstock--logistics--barcode-lightgray.png?logo=github
+ :target: https://github.com/OCA/stock-logistics-barcode/tree/11.0/stock_barcodes_automatic_entry
+ :alt: OCA/stock-logistics-barcode
+.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
+ :target: https://translation.odoo-community.org/projects/stock-logistics-barcode-11-0/stock-logistics-barcode-11-0-stock_barcodes_automatic_entry
+ :alt: Translate me on Weblate
+.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
+ :target: https://runbot.odoo-community.org/runbot/150/11.0
+ :alt: Try me on Runbot
+
+|badge1| |badge2| |badge3| |badge4| |badge5|
+
+This module will automatically trigger the click event on a button with the class
+'barcode-automatic-entry' after a barcode scanned has been processed.
+
+**Table of contents**
+
+.. contents::
+ :local:
+
+Usage
+=====
+
+To use this module, you need to:
+
+* Define, in the view, the button that will be clicked automatically as the example below:
+
+.. code-block:: xml
+
+
+
+* Define the logic to be executed upon button clicking
+
+.. code-block:: python
+
+ def action_automatic_entry(self):
+ # Execute specific logic
+ return
+
+
+Bug Tracker
+===========
+
+Bugs are tracked on `GitHub 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 `_.
+
+Do not contact contributors directly about support or help with technical issues.
+
+Credits
+=======
+
+Authors
+~~~~~~~
+
+* Eficent Business and IT Consulting Services S.L.
+
+Contributors
+~~~~~~~~~~~~
+
+* Adrià Gil Sorribes
+
+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-ageficent| image:: https://github.com/ageficent.png?size=40px
+ :target: https://github.com/ageficent
+ :alt: ageficent
+
+Current `maintainer `__:
+
+|maintainer-ageficent|
+
+This module is part of the `OCA/stock-logistics-barcode `_ project on GitHub.
+
+You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/stock_barcodes_automatic_entry/__init__.py b/stock_barcodes_automatic_entry/__init__.py
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/stock_barcodes_automatic_entry/__manifest__.py b/stock_barcodes_automatic_entry/__manifest__.py
new file mode 100644
index 00000000000..e3a778cf066
--- /dev/null
+++ b/stock_barcodes_automatic_entry/__manifest__.py
@@ -0,0 +1,23 @@
+# Copyright 2019 Eficent Business and IT Consulting Services S.L.
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+
+{
+ 'name': 'Stock Barcodes Automatic Entry',
+ 'summary': """
+ This module will automatically trigger the click event on a button
+ with the class 'barcode-automatic-entry' after a barcode scanned has
+ been processed.
+ """,
+ 'version': '11.0.1.0.0',
+ 'license': 'AGPL-3',
+ "maintainers": ['ageficent'],
+ 'author': 'Eficent Business and IT Consulting Services S.L.,'
+ 'Odoo Community Association (OCA)',
+ 'website': 'https://github.com/OCA/stock-logistics-barcode',
+ 'depends': [
+ 'barcodes'
+ ],
+ 'data': [
+ "views/assets.xml",
+ ],
+}
diff --git a/stock_barcodes_automatic_entry/readme/CONTRIBUTORS.rst b/stock_barcodes_automatic_entry/readme/CONTRIBUTORS.rst
new file mode 100644
index 00000000000..2586049ad73
--- /dev/null
+++ b/stock_barcodes_automatic_entry/readme/CONTRIBUTORS.rst
@@ -0,0 +1 @@
+* Adrià Gil Sorribes
diff --git a/stock_barcodes_automatic_entry/readme/DESCRIPTION.rst b/stock_barcodes_automatic_entry/readme/DESCRIPTION.rst
new file mode 100644
index 00000000000..3c2637b28b4
--- /dev/null
+++ b/stock_barcodes_automatic_entry/readme/DESCRIPTION.rst
@@ -0,0 +1,2 @@
+This module will automatically trigger the click event on a button with the class
+'barcode-automatic-entry' after a barcode scanned has been processed.
diff --git a/stock_barcodes_automatic_entry/readme/USAGE.rst b/stock_barcodes_automatic_entry/readme/USAGE.rst
new file mode 100644
index 00000000000..798a94f4846
--- /dev/null
+++ b/stock_barcodes_automatic_entry/readme/USAGE.rst
@@ -0,0 +1,18 @@
+To use this module, you need to:
+
+* Define, in the view, the button that will be clicked automatically as the example below:
+
+.. code-block:: xml
+
+
+
+* Define the logic to be executed upon button clicking
+
+.. code-block:: python
+
+ def action_automatic_entry(self):
+ # Execute specific logic
+ return
+
diff --git a/stock_barcodes_automatic_entry/static/description/icon.png b/stock_barcodes_automatic_entry/static/description/icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d
GIT binary patch
literal 9455
zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~!
zVpnB`o+K7|Al`Q_U;eD$B
zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA
z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__
zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_
zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I
z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA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SmMpaw0qtTRbx}
z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov
zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22
zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq
zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t<
z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k
z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp
z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{}
zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N
Xviia!U7SGha1wx#SCgwmn*{w2TRX*I
literal 0
HcmV?d00001
diff --git a/stock_barcodes_automatic_entry/static/description/index.html b/stock_barcodes_automatic_entry/static/description/index.html
new file mode 100644
index 00000000000..a04bf1672b4
--- /dev/null
+++ b/stock_barcodes_automatic_entry/static/description/index.html
@@ -0,0 +1,443 @@
+
+
+
+
+
+
+Stock Barcodes Automatic Entry
+
+
+
+
+
Stock Barcodes Automatic Entry
+
+
+
+
This module will automatically trigger the click event on a button with the class
+‘barcode-automatic-entry’ after a barcode scanned has been processed.
Bugs are tracked on GitHub 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.
+
Do not contact contributors directly about support or help with technical issues.
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.
+
+
diff --git a/stock_barcodes_automatic_entry/static/src/css/button_style.css b/stock_barcodes_automatic_entry/static/src/css/button_style.css
new file mode 100644
index 00000000000..1e1a5547549
--- /dev/null
+++ b/stock_barcodes_automatic_entry/static/src/css/button_style.css
@@ -0,0 +1,3 @@
+.barcode-automatic-entry {
+
+}
\ No newline at end of file
diff --git a/stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js b/stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js
new file mode 100644
index 00000000000..6a2c8750ad7
--- /dev/null
+++ b/stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js
@@ -0,0 +1,19 @@
+/* Copyright 2019 Eficent Business and IT Consulting Services S.L.
+ * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
+
+odoo.define('stock_barcodes_automatic_entry.FormController', function(require) {
+ 'use strict';
+
+ var FormController = require('web.FormController');
+
+ FormController.include({
+ _barcodeActiveScanned: function (method, barcode, activeBarcode) {
+ var self = this;
+ return this._super.apply(this, arguments).then(function () {
+ if ($(".barcode-automatic-entry")) {
+ $(".barcode-automatic-entry").trigger('click')
+ }
+ })
+ },
+ });
+});
diff --git a/stock_barcodes_automatic_entry/views/assets.xml b/stock_barcodes_automatic_entry/views/assets.xml
new file mode 100644
index 00000000000..6315e8e51a6
--- /dev/null
+++ b/stock_barcodes_automatic_entry/views/assets.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
From 70d1c234c6915077b6c7b75bb07875f70e01c373 Mon Sep 17 00:00:00 2001
From: ahenriquez
Date: Mon, 30 Mar 2020 18:15:12 +0200
Subject: [PATCH 004/409] [IMP] : black, isort
---
.../__manifest__.py | 24 ++++++++-----------
.../readme/USAGE.rst | 1 -
.../static/src/css/button_style.css | 3 +--
.../static/src/js/stock_barcodes.js | 14 +++++------
.../views/assets.xml | 20 +++++++++++-----
5 files changed, 32 insertions(+), 30 deletions(-)
diff --git a/stock_barcodes_automatic_entry/__manifest__.py b/stock_barcodes_automatic_entry/__manifest__.py
index e3a778cf066..79a0f7ac6f0 100644
--- a/stock_barcodes_automatic_entry/__manifest__.py
+++ b/stock_barcodes_automatic_entry/__manifest__.py
@@ -2,22 +2,18 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
- 'name': 'Stock Barcodes Automatic Entry',
- 'summary': """
+ "name": "Stock Barcodes Automatic Entry",
+ "summary": """
This module will automatically trigger the click event on a button
with the class 'barcode-automatic-entry' after a barcode scanned has
been processed.
""",
- 'version': '11.0.1.0.0',
- 'license': 'AGPL-3',
- "maintainers": ['ageficent'],
- 'author': 'Eficent Business and IT Consulting Services S.L.,'
- 'Odoo Community Association (OCA)',
- 'website': 'https://github.com/OCA/stock-logistics-barcode',
- 'depends': [
- 'barcodes'
- ],
- 'data': [
- "views/assets.xml",
- ],
+ "version": "11.0.1.0.0",
+ "license": "AGPL-3",
+ "maintainers": ["ageficent"],
+ "author": "Eficent Business and IT Consulting Services S.L.,"
+ "Odoo Community Association (OCA)",
+ "website": "https://github.com/OCA/stock-logistics-barcode",
+ "depends": ["barcodes"],
+ "data": ["views/assets.xml",],
}
diff --git a/stock_barcodes_automatic_entry/readme/USAGE.rst b/stock_barcodes_automatic_entry/readme/USAGE.rst
index 798a94f4846..0500487a1cb 100644
--- a/stock_barcodes_automatic_entry/readme/USAGE.rst
+++ b/stock_barcodes_automatic_entry/readme/USAGE.rst
@@ -15,4 +15,3 @@ To use this module, you need to:
def action_automatic_entry(self):
# Execute specific logic
return
-
diff --git a/stock_barcodes_automatic_entry/static/src/css/button_style.css b/stock_barcodes_automatic_entry/static/src/css/button_style.css
index 1e1a5547549..6354476f8f3 100644
--- a/stock_barcodes_automatic_entry/static/src/css/button_style.css
+++ b/stock_barcodes_automatic_entry/static/src/css/button_style.css
@@ -1,3 +1,2 @@
.barcode-automatic-entry {
-
-}
\ No newline at end of file
+}
diff --git a/stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js b/stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js
index 6a2c8750ad7..5aa8281806a 100644
--- a/stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js
+++ b/stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js
@@ -1,19 +1,19 @@
/* Copyright 2019 Eficent Business and IT Consulting Services S.L.
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
-odoo.define('stock_barcodes_automatic_entry.FormController', function(require) {
- 'use strict';
+odoo.define("stock_barcodes_automatic_entry.FormController", function(require) {
+ "use strict";
- var FormController = require('web.FormController');
+ var FormController = require("web.FormController");
FormController.include({
- _barcodeActiveScanned: function (method, barcode, activeBarcode) {
+ _barcodeActiveScanned: function(method, barcode, activeBarcode) {
var self = this;
- return this._super.apply(this, arguments).then(function () {
+ return this._super.apply(this, arguments).then(function() {
if ($(".barcode-automatic-entry")) {
- $(".barcode-automatic-entry").trigger('click')
+ $(".barcode-automatic-entry").trigger("click");
}
- })
+ });
},
});
});
diff --git a/stock_barcodes_automatic_entry/views/assets.xml b/stock_barcodes_automatic_entry/views/assets.xml
index 6315e8e51a6..656234fab37 100644
--- a/stock_barcodes_automatic_entry/views/assets.xml
+++ b/stock_barcodes_automatic_entry/views/assets.xml
@@ -1,11 +1,19 @@
-
+
-
-
+
-
-
+
+
-
From 08b8b457f1f2f5b354a3889d3e8be359133bc1a2 Mon Sep 17 00:00:00 2001
From: hveficent
Date: Mon, 30 Mar 2020 18:16:48 +0200
Subject: [PATCH 005/409] [MIG]stock_barcodes_automatic_entry to v13
---
stock_barcodes_automatic_entry/README.rst | 10 +++++-----
stock_barcodes_automatic_entry/__manifest__.py | 4 ++--
.../static/description/index.html | 6 +++---
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/stock_barcodes_automatic_entry/README.rst b/stock_barcodes_automatic_entry/README.rst
index ea438592f42..337c8f2ac17 100644
--- a/stock_barcodes_automatic_entry/README.rst
+++ b/stock_barcodes_automatic_entry/README.rst
@@ -14,13 +14,13 @@ Stock Barcodes Automatic Entry
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--barcode-lightgray.png?logo=github
- :target: https://github.com/OCA/stock-logistics-barcode/tree/11.0/stock_barcodes_automatic_entry
+ :target: https://github.com/OCA/stock-logistics-barcode/tree/12.0/stock_barcodes_automatic_entry
:alt: OCA/stock-logistics-barcode
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/stock-logistics-barcode-11-0/stock-logistics-barcode-11-0-stock_barcodes_automatic_entry
+ :target: https://translation.odoo-community.org/projects/stock-logistics-barcode-12-0/stock-logistics-barcode-12-0-stock_barcodes_automatic_entry
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/150/11.0
+ :target: https://runbot.odoo-community.org/runbot/150/12.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -61,7 +61,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -99,6 +99,6 @@ Current `maintainer `__:
|maintainer-ageficent|
-This module is part of the `OCA/stock-logistics-barcode `_ project on GitHub.
+This module is part of the `OCA/stock-logistics-barcode `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/stock_barcodes_automatic_entry/__manifest__.py b/stock_barcodes_automatic_entry/__manifest__.py
index 79a0f7ac6f0..0bb30a622b5 100644
--- a/stock_barcodes_automatic_entry/__manifest__.py
+++ b/stock_barcodes_automatic_entry/__manifest__.py
@@ -8,12 +8,12 @@
with the class 'barcode-automatic-entry' after a barcode scanned has
been processed.
""",
- "version": "11.0.1.0.0",
+ "version": "13.0.1.0.0",
"license": "AGPL-3",
"maintainers": ["ageficent"],
"author": "Eficent Business and IT Consulting Services S.L.,"
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-barcode",
"depends": ["barcodes"],
- "data": ["views/assets.xml",],
+ "data": ["views/assets.xml"],
}
diff --git a/stock_barcodes_automatic_entry/static/description/index.html b/stock_barcodes_automatic_entry/static/description/index.html
index a04bf1672b4..791122317c4 100644
--- a/stock_barcodes_automatic_entry/static/description/index.html
+++ b/stock_barcodes_automatic_entry/static/description/index.html
@@ -367,7 +367,7 @@
Stock Barcodes Automatic Entry
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module will automatically trigger the click event on a button with the class
‘barcode-automatic-entry’ after a barcode scanned has been processed.
Bugs are tracked on GitHub 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.
From 8a338c687e4e524386a7f0e20a15d4681d5467ad Mon Sep 17 00:00:00 2001
From: ahenriquez
Date: Tue, 7 Apr 2020 14:53:40 +0200
Subject: [PATCH 006/409] [UPT]sanitize stock_barcode_automatic_entry
---
stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js b/stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js
index 5aa8281806a..1b6c79835ad 100644
--- a/stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js
+++ b/stock_barcodes_automatic_entry/static/src/js/stock_barcodes.js
@@ -7,8 +7,7 @@ odoo.define("stock_barcodes_automatic_entry.FormController", function(require) {
var FormController = require("web.FormController");
FormController.include({
- _barcodeActiveScanned: function(method, barcode, activeBarcode) {
- var self = this;
+ _barcodeActiveScanned: function() {
return this._super.apply(this, arguments).then(function() {
if ($(".barcode-automatic-entry")) {
$(".barcode-automatic-entry").trigger("click");
From c0cd5499814bc902ea1046aa66b4ba4068b339b3 Mon Sep 17 00:00:00 2001
From: ahenriquez
Date: Tue, 7 Apr 2020 15:06:01 +0200
Subject: [PATCH 007/409] [UPT]rebranding
---
stock_barcodes_automatic_entry/__manifest__.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/stock_barcodes_automatic_entry/__manifest__.py b/stock_barcodes_automatic_entry/__manifest__.py
index 0bb30a622b5..eb56e2115dd 100644
--- a/stock_barcodes_automatic_entry/__manifest__.py
+++ b/stock_barcodes_automatic_entry/__manifest__.py
@@ -1,4 +1,4 @@
-# Copyright 2019 Eficent Business and IT Consulting Services S.L.
+# Copyright 2020 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
@@ -11,8 +11,7 @@
"version": "13.0.1.0.0",
"license": "AGPL-3",
"maintainers": ["ageficent"],
- "author": "Eficent Business and IT Consulting Services S.L.,"
- "Odoo Community Association (OCA)",
+ "author": "ForgeFlow S.L., " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-barcode",
"depends": ["barcodes"],
"data": ["views/assets.xml"],
From c9b5e39c64eb07e58e9936497c31a25b368592ff Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Fri, 17 Apr 2020 12:53:24 +0000
Subject: [PATCH 008/409] [UPD] Update stock_barcodes_automatic_entry.pot
---
.../i18n/stock_barcodes_automatic_entry.pot | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 stock_barcodes_automatic_entry/i18n/stock_barcodes_automatic_entry.pot
diff --git a/stock_barcodes_automatic_entry/i18n/stock_barcodes_automatic_entry.pot b/stock_barcodes_automatic_entry/i18n/stock_barcodes_automatic_entry.pot
new file mode 100644
index 00000000000..cc93d01ee54
--- /dev/null
+++ b/stock_barcodes_automatic_entry/i18n/stock_barcodes_automatic_entry.pot
@@ -0,0 +1,13 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 13.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"
From 2fade9a6151a108283647c93786e0455266bd6e0 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Fri, 17 Apr 2020 12:59:28 +0000
Subject: [PATCH 009/409] [UPD] README.rst
---
stock_barcodes_automatic_entry/README.rst | 13 ++++++-------
.../static/description/index.html | 10 +++++-----
2 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/stock_barcodes_automatic_entry/README.rst b/stock_barcodes_automatic_entry/README.rst
index 337c8f2ac17..e02e7387e14 100644
--- a/stock_barcodes_automatic_entry/README.rst
+++ b/stock_barcodes_automatic_entry/README.rst
@@ -14,13 +14,13 @@ Stock Barcodes Automatic Entry
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--barcode-lightgray.png?logo=github
- :target: https://github.com/OCA/stock-logistics-barcode/tree/12.0/stock_barcodes_automatic_entry
+ :target: https://github.com/OCA/stock-logistics-barcode/tree/13.0/stock_barcodes_automatic_entry
:alt: OCA/stock-logistics-barcode
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/stock-logistics-barcode-12-0/stock-logistics-barcode-12-0-stock_barcodes_automatic_entry
+ :target: https://translation.odoo-community.org/projects/stock-logistics-barcode-13-0/stock-logistics-barcode-13-0-stock_barcodes_automatic_entry
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/150/12.0
+ :target: https://runbot.odoo-community.org/runbot/150/13.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -54,14 +54,13 @@ To use this module, you need to:
# Execute specific logic
return
-
Bug Tracker
===========
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -71,7 +70,7 @@ Credits
Authors
~~~~~~~
-* Eficent Business and IT Consulting Services S.L.
+* ForgeFlow S.L.
Contributors
~~~~~~~~~~~~
@@ -99,6 +98,6 @@ Current `maintainer `__:
|maintainer-ageficent|
-This module is part of the `OCA/stock-logistics-barcode `_ project on GitHub.
+This module is part of the `OCA/stock-logistics-barcode `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/stock_barcodes_automatic_entry/static/description/index.html b/stock_barcodes_automatic_entry/static/description/index.html
index 791122317c4..7ba16a01998 100644
--- a/stock_barcodes_automatic_entry/static/description/index.html
+++ b/stock_barcodes_automatic_entry/static/description/index.html
@@ -3,7 +3,7 @@
-
+
Stock Barcodes Automatic Entry
+
+
+
+
GS1 Barcode API
+
+
+
+
+
GS1 Barcodes
+
This module provides an API to decoding the content of structured barcodes
+like GS1-128 or GS1-Datamatrix.
+
GS1-128 (formerly known as UCC-128, EAN 128 or UCC/EAN-128), and GS1-Datamatrix
+are standards for encoding item identification and logistics data.
+Physically, GS1-128 is represented as a 1-dimension Code-128 barcode and
+GS1-Datamtrix is represented as a 2-dimensions Datamatrix barcode.
+
When those barcodes are read, their content can be decode into multiple values
+using a set of standard “Application Identifiers”. For example, most pharmacy
+items have a GS1-Datamatrix barcode containg their GTIN, lot number and
+expiry date.
+
This module does not directly allow you to print or scan barcodes.
+Instead, the focus of this module is on decoding the data contained in
+barcodes. To this end, it provides objects to fine-tune the Application
+Identifiers and the associated data types.
+
Table of contents
+
+
+
Usage
+
You can use the functionality provided by this module in your own customization
+or other OCA modules.
+
+
+
Known issues / Roadmap
+
+
+
Group separator
+
When an “Application Identifiers” has variable-length data,
+the barcodes must contain a special character (<GS>, group separator)
+but as this is not an ASCII character. Some barcode readers will not include
+this character: decoding the structured data will then be impossible. Other
+readers will translate GS1 to ASCII character 29, but this character is not
+printable, and some applications may not record it. Yet other readers will
+let you configure how to map <GS>, which may help improve compatibility.
+
+
+
Bug Tracker
+
Bugs are tracked on GitHub 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.
+
Do not contact contributors directly about support or help with technical issues.
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 extends Odoo functionality, allowing user to generate barcode
+depending on a given barcode rule for any Model.
+
For example, a typical pattern for products is “20…..{NNNDD}” that means
+that:
+* the EAN13 code will begin by ‘20’
+* followed by 5 digits (named Barcode Base in this module)
+* and after 5 others digits to define the variable price
+* a 13 digit control
+
With this module, it is possible to:
+
+
Affect a pattern (barcode.rule) to a model
+
+
Define a Barcode base:
+
+
manually, if the base of the barcode must be set by a user. (typically an
+internal code defined in your company)
+
automaticaly by a sequence, if you want to let Odoo to increment a
+sequence. (typical case of a customer number incrementation)
+
+
+
+
+
Generate a barcode, based on the defined pattern and the barcode base
This module is an abstract module. You can configure Barcode Rule, but to
+enable this feature, you need to install an extra module for a given model.
+This repository provide ‘barcodes_generator_product’ and
+‘barcodes_generator_partner’ module to generate barcode for product or partner
+model.
+
Alternatively, you can develop a custom module for a custom model. See
+‘Inheritance’ parts.
If you want to generate barcode for another model, you can create a custom
+module that inherits on ‘barcodes_generator_abstract’ and inherit your model
+like that:
Bugs are tracked on GitHub 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.
+
Do not contact contributors directly about support or help with technical issues.
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.
+
+
diff --git a/barcodes_generator_abstract/tests/__init__.py b/barcodes_generator_abstract/tests/__init__.py
new file mode 100644
index 00000000000..c24e00689ba
--- /dev/null
+++ b/barcodes_generator_abstract/tests/__init__.py
@@ -0,0 +1 @@
+from . import test_barcodes_generator_abstract
diff --git a/barcodes_generator_abstract/tests/models.py b/barcodes_generator_abstract/tests/models.py
new file mode 100644
index 00000000000..05eb894e0d1
--- /dev/null
+++ b/barcodes_generator_abstract/tests/models.py
@@ -0,0 +1,18 @@
+# Copyright 2021 Tecnativa - Carlos Roca
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
+from odoo import fields, models
+
+
+class BarcodeRuleUserFake(models.Model):
+ _inherit = "barcode.rule"
+
+ generate_model = fields.Selection(selection_add=[("res.users", "Users")])
+
+ type = fields.Selection(selection_add=[("user", "User")])
+
+
+class BarcodeGeneratorUserFake(models.Model):
+ _name = "res.users"
+ _inherit = ["res.users", "barcode.generate.mixin"]
+
+ barcode = fields.Char("Barcode", copy=False)
diff --git a/barcodes_generator_abstract/tests/test_barcodes_generator_abstract.py b/barcodes_generator_abstract/tests/test_barcodes_generator_abstract.py
new file mode 100644
index 00000000000..6603befedb4
--- /dev/null
+++ b/barcodes_generator_abstract/tests/test_barcodes_generator_abstract.py
@@ -0,0 +1,49 @@
+# Copyright 2021 Tecnativa - Carlos Roca
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
+from odoo_test_helper import FakeModelLoader
+
+from odoo.tests import SavepointCase
+
+
+class TestBarcodesGeneratorAbstract(SavepointCase, FakeModelLoader):
+ @classmethod
+ def setUpClass(cls):
+ super().setUpClass()
+ cls.loader = FakeModelLoader(cls.env, cls.__module__)
+ cls.loader.backup_registry()
+ from .models import BarcodeGeneratorUserFake, BarcodeRuleUserFake
+
+ cls.loader.update_registry((BarcodeGeneratorUserFake, BarcodeRuleUserFake,))
+ cls.barcode_rule_fake = cls.env["barcode.rule"].create(
+ {
+ "name": "User rule",
+ "barcode_nomenclature_id": cls.env.ref(
+ "barcodes.default_barcode_nomenclature"
+ ).id,
+ "type": "user",
+ "sequence": 999,
+ "encoding": "ean13",
+ "pattern": "20.....{NNNDD}",
+ "generate_type": "manual",
+ "generate_model": "res.users",
+ }
+ )
+ cls.user_fake = cls.env["res.users"].create(
+ {
+ "name": "Test user",
+ "login": "testing_01",
+ "barcode_rule_id": cls.barcode_rule_fake.id,
+ "barcode_base": 10,
+ }
+ )
+ cls.user_fake.generate_barcode()
+
+ @classmethod
+ def tearDownClass(cls):
+ cls.loader.restore_registry()
+ super().tearDownClass()
+
+ def test_generate_sequence(self):
+ self.assertEqual(
+ self.user_fake.barcode, "2000010000005",
+ )
From f596fa8c0789d4de952e9846a14fcc832d40d6d5 Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Sun, 7 Feb 2021 14:27:48 +0000
Subject: [PATCH 055/409] [UPD] Update barcodes_generator_abstract.pot
---
.../i18n/barcodes_generator_abstract.pot | 51 ++++++++-----------
1 file changed, 21 insertions(+), 30 deletions(-)
diff --git a/barcodes_generator_abstract/i18n/barcodes_generator_abstract.pot b/barcodes_generator_abstract/i18n/barcodes_generator_abstract.pot
index 75c34609d27..582faf645fb 100644
--- a/barcodes_generator_abstract/i18n/barcodes_generator_abstract.pot
+++ b/barcodes_generator_abstract/i18n/barcodes_generator_abstract.pot
@@ -1,12 +1,12 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * barcodes_generator_abstract
+# * barcodes_generator_abstract
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 12.0\n"
+"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
-"Last-Translator: <>\n"
+"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -16,7 +16,8 @@ msgstr ""
#. module: barcodes_generator_abstract
#: model:ir.model.fields,help:barcodes_generator_abstract.field_barcode_generate_mixin__generate_type
#: model:ir.model.fields,help:barcodes_generator_abstract.field_barcode_rule__generate_type
-msgid "Allow to generate barcode, including a number (a base) in the final barcode.\n"
+msgid ""
+"Allow to generate barcode, including a number (a base) in the final barcode.\n"
" 'Base Set Manually' : User should set manually the value of the barcode base\n"
" 'Base managed by Sequence': User will use a button to generate a new base. This base will be generated by a sequence"
msgstr ""
@@ -48,18 +49,20 @@ msgid "Barcode Rule"
msgstr ""
#. module: barcodes_generator_abstract
-#: selection:barcode.rule,generate_type:0
+#: model:ir.model.fields.selection,name:barcodes_generator_abstract.selection__barcode_rule__generate_type__sequence
msgid "Base managed by Sequence"
msgstr ""
#. module: barcodes_generator_abstract
-#: selection:barcode.rule,generate_type:0
+#: model:ir.model.fields.selection,name:barcodes_generator_abstract.selection__barcode_rule__generate_type__manual
msgid "Base set Manually"
msgstr ""
#. module: barcodes_generator_abstract
#: model:ir.model.fields,help:barcodes_generator_abstract.field_barcode_rule__generate_automate
-msgid "Check this to automatically generate a barcode upon creation of a new record in the mixed model."
+msgid ""
+"Check this to automatically generate a barcode upon creation of a new record"
+" in the mixed model."
msgstr ""
#. module: barcodes_generator_abstract
@@ -78,9 +81,11 @@ msgid "Generate Barcodes"
msgstr ""
#. module: barcodes_generator_abstract
-#: code:addons/barcodes_generator_abstract/models/barcode_generate_mixin.py:55
+#: code:addons/barcodes_generator_abstract/models/barcode_generate_mixin.py:0
#, python-format
-msgid "Generate Base can be used only with barcode rule with 'Generate Type' set to 'Base managed by Sequence'"
+msgid ""
+"Generate Base can be used only with barcode rule with 'Generate Type' set to"
+" 'Base managed by Sequence'"
msgstr ""
#. module: barcodes_generator_abstract
@@ -94,9 +99,11 @@ msgid "Generate Sequence"
msgstr ""
#. module: barcodes_generator_abstract
-#: code:addons/barcodes_generator_abstract/models/barcode_rule.py:104
+#: code:addons/barcodes_generator_abstract/models/barcode_rule.py:0
#, python-format
-msgid "Generate Sequence is possible only if 'Generate Type' is set to 'Base managed by Sequence'"
+msgid ""
+"Generate Sequence is possible only if 'Generate Type' is set to 'Base "
+"managed by Sequence'"
msgstr ""
#. module: barcodes_generator_abstract
@@ -121,12 +128,12 @@ msgid "Last Modified on"
msgstr ""
#. module: barcodes_generator_abstract
-#: selection:barcode.rule,generate_type:0
+#: model:ir.model.fields.selection,name:barcodes_generator_abstract.selection__barcode_rule__generate_type__no
msgid "No generation"
msgstr ""
#. module: barcodes_generator_abstract
-#: code:addons/barcodes_generator_abstract/models/barcode_rule.py:82
+#: code:addons/barcodes_generator_abstract/models/barcode_rule.py:0
#, python-format
msgid "Only one rule per model can be used for automatic barcode generation."
msgstr ""
@@ -137,17 +144,7 @@ msgid "Padding"
msgstr ""
#. module: barcodes_generator_abstract
-#: selection:barcode.rule,generate_model:0
-msgid "Partners"
-msgstr ""
-
-#. module: barcodes_generator_abstract
-#: selection:barcode.rule,generate_model:0
-msgid "Products"
-msgstr ""
-
-#. module: barcodes_generator_abstract
-#: code:addons/barcodes_generator_abstract/models/barcode_rule.py:114
+#: code:addons/barcodes_generator_abstract/models/barcode_rule.py:0
#, python-format
msgid "Sequence - %s"
msgstr ""
@@ -156,9 +153,3 @@ msgstr ""
#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_rule__sequence_id
msgid "Sequence Id"
msgstr ""
-
-#. module: barcodes_generator_abstract
-#: selection:barcode.rule,generate_model:0
-msgid "Stock Location"
-msgstr ""
-
From 03e6754d8fd1c2cb0b8b24fb695fa822441ceabe Mon Sep 17 00:00:00 2001
From: Zar21
Date: Wed, 19 May 2021 12:06:59 +0200
Subject: [PATCH 056/409] [IMP] barcodes_generator_abstract: black, isort,
prettier
---
barcodes_generator_abstract/__manifest__.py | 2 +-
.../tests/test_barcodes_generator_abstract.py | 10 ++++++++--
requirements.txt | 2 ++
.../odoo/addons/barcodes_generator_abstract | 1 +
setup/barcodes_generator_abstract/setup.py | 6 ++++++
5 files changed, 18 insertions(+), 3 deletions(-)
create mode 100644 requirements.txt
create mode 120000 setup/barcodes_generator_abstract/odoo/addons/barcodes_generator_abstract
create mode 100644 setup/barcodes_generator_abstract/setup.py
diff --git a/barcodes_generator_abstract/__manifest__.py b/barcodes_generator_abstract/__manifest__.py
index b1c11d23a2f..77674d9d4e9 100644
--- a/barcodes_generator_abstract/__manifest__.py
+++ b/barcodes_generator_abstract/__manifest__.py
@@ -10,7 +10,7 @@
"version": "13.0.1.0.0",
"category": "Tools",
"author": "GRAP, La Louve, LasLabs, Odoo Community Association (OCA)",
- "website": "https://www.odoo-community.org",
+ "website": "https://github.com/OCA/stock-logistics-barcode",
"license": "AGPL-3",
"depends": ["barcodes"],
"data": [
diff --git a/barcodes_generator_abstract/tests/test_barcodes_generator_abstract.py b/barcodes_generator_abstract/tests/test_barcodes_generator_abstract.py
index 6603befedb4..fbddfd0f82e 100644
--- a/barcodes_generator_abstract/tests/test_barcodes_generator_abstract.py
+++ b/barcodes_generator_abstract/tests/test_barcodes_generator_abstract.py
@@ -13,7 +13,12 @@ def setUpClass(cls):
cls.loader.backup_registry()
from .models import BarcodeGeneratorUserFake, BarcodeRuleUserFake
- cls.loader.update_registry((BarcodeGeneratorUserFake, BarcodeRuleUserFake,))
+ cls.loader.update_registry(
+ (
+ BarcodeGeneratorUserFake,
+ BarcodeRuleUserFake,
+ )
+ )
cls.barcode_rule_fake = cls.env["barcode.rule"].create(
{
"name": "User rule",
@@ -45,5 +50,6 @@ def tearDownClass(cls):
def test_generate_sequence(self):
self.assertEqual(
- self.user_fake.barcode, "2000010000005",
+ self.user_fake.barcode,
+ "2000010000005",
)
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 00000000000..a79665d79aa
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,2 @@
+# generated from manifests external_dependencies
+barcode
diff --git a/setup/barcodes_generator_abstract/odoo/addons/barcodes_generator_abstract b/setup/barcodes_generator_abstract/odoo/addons/barcodes_generator_abstract
new file mode 120000
index 00000000000..7bb059e6c3d
--- /dev/null
+++ b/setup/barcodes_generator_abstract/odoo/addons/barcodes_generator_abstract
@@ -0,0 +1 @@
+../../../../barcodes_generator_abstract
\ No newline at end of file
diff --git a/setup/barcodes_generator_abstract/setup.py b/setup/barcodes_generator_abstract/setup.py
new file mode 100644
index 00000000000..28c57bb6403
--- /dev/null
+++ b/setup/barcodes_generator_abstract/setup.py
@@ -0,0 +1,6 @@
+import setuptools
+
+setuptools.setup(
+ setup_requires=['setuptools-odoo'],
+ odoo_addon=True,
+)
From 3f6a31fa0fbbebbd4301bed263d11d4219965877 Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Thu, 17 Jun 2021 12:01:16 +0000
Subject: [PATCH 057/409] [UPD] Update base_gs1_barcode.pot
---
base_gs1_barcode/i18n/base_gs1_barcode.pot | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/base_gs1_barcode/i18n/base_gs1_barcode.pot b/base_gs1_barcode/i18n/base_gs1_barcode.pot
index 832b69820dc..a53964efb77 100644
--- a/base_gs1_barcode/i18n/base_gs1_barcode.pot
+++ b/base_gs1_barcode/i18n/base_gs1_barcode.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 13.0\n"
+"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -323,6 +323,7 @@ msgstr ""
#. module: base_gs1_barcode
#: model:ir.model.fields,field_description:base_gs1_barcode.field_gs1_barcode__display_name
+#: model:ir.model.fields,field_description:base_gs1_barcode.field_res_users__display_name
msgid "Display Name"
msgstr ""
@@ -405,6 +406,7 @@ msgstr ""
#. module: base_gs1_barcode
#: model:ir.model.fields,field_description:base_gs1_barcode.field_gs1_barcode__id
+#: model:ir.model.fields,field_description:base_gs1_barcode.field_res_users__id
msgid "ID"
msgstr ""
@@ -479,6 +481,7 @@ msgstr ""
#. module: base_gs1_barcode
#: model:ir.model.fields,field_description:base_gs1_barcode.field_gs1_barcode____last_update
+#: model:ir.model.fields,field_description:base_gs1_barcode.field_res_users____last_update
msgid "Last Modified on"
msgstr ""
From 093f7b3d543a1c4a528087de6b1e5d56d76aa5e4 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Thu, 17 Jun 2021 12:07:43 +0000
Subject: [PATCH 058/409] [UPD] addons table in README.md
---
README.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 88e4d2520d3..ab9022f060b 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,11 @@ TODO: add repo description.
[//]: # (addons)
-This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.
+Available addons
+----------------
+addon | version | summary
+--- | --- | ---
+[base_gs1_barcode](base_gs1_barcode/) | 14.0.1.0.0 | Decoding API for GS1-128 (aka UCC/EAN-128) and GS1-Datamatrix
[//]: # (end addons)
From b6046701ef44a7d9b89ba2525683b4c89dd7d188 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Thu, 17 Jun 2021 12:07:44 +0000
Subject: [PATCH 059/409] [UPD] README.rst
---
base_gs1_barcode/README.rst | 10 +++++-----
base_gs1_barcode/static/description/index.html | 10 +++++++---
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/base_gs1_barcode/README.rst b/base_gs1_barcode/README.rst
index b2e661fbd0e..eb86abb75d6 100644
--- a/base_gs1_barcode/README.rst
+++ b/base_gs1_barcode/README.rst
@@ -14,13 +14,13 @@ GS1 Barcode API
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--barcode-lightgray.png?logo=github
- :target: https://github.com/OCA/stock-logistics-barcode/tree/13.0/base_gs1_barcode
+ :target: https://github.com/OCA/stock-logistics-barcode/tree/14.0/base_gs1_barcode
:alt: OCA/stock-logistics-barcode
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/stock-logistics-barcode-13-0/stock-logistics-barcode-13-0-base_gs1_barcode
+ :target: https://translation.odoo-community.org/projects/stock-logistics-barcode-14-0/stock-logistics-barcode-14-0-base_gs1_barcode
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/150/13.0
+ :target: https://runbot.odoo-community.org/runbot/150/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -77,7 +77,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -121,6 +121,6 @@ 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/stock-logistics-barcode `_ project on GitHub.
+This module is part of the `OCA/stock-logistics-barcode `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/base_gs1_barcode/static/description/index.html b/base_gs1_barcode/static/description/index.html
index 4a63c90058b..9708c4449fe 100644
--- a/base_gs1_barcode/static/description/index.html
+++ b/base_gs1_barcode/static/description/index.html
@@ -367,7 +367,7 @@
GS1 Barcode API
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
GS1 Barcodes
This module provides an API to decoding the content of structured barcodes
@@ -409,7 +409,7 @@
Bug Tracker
Bugs are tracked on GitHub 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.
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.
Bugs are tracked on GitHub 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.
+
Do not contact contributors directly about support or help with technical issues.
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.
+
+
From 31c88002e099899d970e29a8e4cba3f9c2674e78 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Fri, 6 Mar 2020 17:30:19 +0000
Subject: [PATCH 066/409] [ADD] icon.png
---
.../static/description/icon.png | Bin 0 -> 9455 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 product_supplierinfo_barcode/static/description/icon.png
diff --git a/product_supplierinfo_barcode/static/description/icon.png b/product_supplierinfo_barcode/static/description/icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d
GIT binary patch
literal 9455
zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~!
zVpnB`o+K7|Al`Q_U;eD$B
zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA
z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__
zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_
zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I
z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U
z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)(
z;)z%wI5>D4a*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH
zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW
z*bMSSOauW>o;*=kO8ojw91VX!qoOQb)zHJ!odWB}d+*K?#sY_jqPdg{Sm2HdYzd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FFE8)|a!R{`E`K`i^ZnyE4$k
z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp
z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{}
zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N
Xviia!U7SGha1wx#SCgwmn*{w2TRX*I
literal 0
HcmV?d00001
From 6101e7130b688147fc394a7740aadcc82ecb1180 Mon Sep 17 00:00:00 2001
From: eLBati
Date: Thu, 25 Jun 2020 15:44:19 +0200
Subject: [PATCH 067/409] IMP product_supplierinfo_barcode allowing to search
products by supplier codes
---
product_supplierinfo_barcode/__manifest__.py | 1 +
.../views/product_views.xml | 14 ++++++++++++++
2 files changed, 15 insertions(+)
create mode 100644 product_supplierinfo_barcode/views/product_views.xml
diff --git a/product_supplierinfo_barcode/__manifest__.py b/product_supplierinfo_barcode/__manifest__.py
index 7d0e12d0617..9d019ce354c 100644
--- a/product_supplierinfo_barcode/__manifest__.py
+++ b/product_supplierinfo_barcode/__manifest__.py
@@ -19,6 +19,7 @@
],
"data": [
"views/supplierinfo_views.xml",
+ "views/product_views.xml",
],
"demo": [
],
diff --git a/product_supplierinfo_barcode/views/product_views.xml b/product_supplierinfo_barcode/views/product_views.xml
new file mode 100644
index 00000000000..2d504e94e14
--- /dev/null
+++ b/product_supplierinfo_barcode/views/product_views.xml
@@ -0,0 +1,14 @@
+
+
+
+ product_template_search_view_supplier_code
+ product.template
+
+
+
+
+
+
+
+
From 41ca60f2f7ea9217a2c92659e88099d53fd21ef4 Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Wed, 7 Oct 2020 12:31:00 +0000
Subject: [PATCH 068/409] [UPD] Update product_supplierinfo_barcode.pot
---
.../i18n/product_supplierinfo_barcode.pot | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/product_supplierinfo_barcode/i18n/product_supplierinfo_barcode.pot b/product_supplierinfo_barcode/i18n/product_supplierinfo_barcode.pot
index 7f38b128b12..2c8f50fbe41 100644
--- a/product_supplierinfo_barcode/i18n/product_supplierinfo_barcode.pot
+++ b/product_supplierinfo_barcode/i18n/product_supplierinfo_barcode.pot
@@ -33,3 +33,8 @@ msgstr ""
msgid "Supplier Pricelist"
msgstr ""
+#. module: product_supplierinfo_barcode
+#: model_terms:ir.ui.view,arch_db:product_supplierinfo_barcode.product_template_search_view_supplier_code
+msgid "Supplier code"
+msgstr ""
+
From 0ed8dfb5e2f97f438867db7a9cf2fb8e740d3eb4 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Wed, 7 Oct 2020 12:49:45 +0000
Subject: [PATCH 069/409] product_supplierinfo_barcode 12.0.1.1.0
---
product_supplierinfo_barcode/__manifest__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/product_supplierinfo_barcode/__manifest__.py b/product_supplierinfo_barcode/__manifest__.py
index 9d019ce354c..1d2880c6991 100644
--- a/product_supplierinfo_barcode/__manifest__.py
+++ b/product_supplierinfo_barcode/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "Barcode in supplier pricelist",
"summary": "Add a barcode to supplier pricelist items",
- "version": "12.0.1.0.0",
+ "version": "12.0.1.1.0",
"development_status": "Beta",
"category": "Hidden",
"website": "https://github.com/OCA/stock-logistics-barcode",
From 81dbd7dc67661a6034e73e2a479224b884d2c39e Mon Sep 17 00:00:00 2001
From: Maria Sparenberg
Date: Tue, 1 Jun 2021 13:47:58 +0000
Subject: [PATCH 070/409] Added translation using Weblate (German)
---
product_supplierinfo_barcode/i18n/de.po | 40 +++++++++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 product_supplierinfo_barcode/i18n/de.po
diff --git a/product_supplierinfo_barcode/i18n/de.po b/product_supplierinfo_barcode/i18n/de.po
new file mode 100644
index 00000000000..618af4399d2
--- /dev/null
+++ b/product_supplierinfo_barcode/i18n/de.po
@@ -0,0 +1,40 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * product_supplierinfo_barcode
+#
+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: de\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: product_supplierinfo_barcode
+#: sql_constraint:product.supplierinfo:0
+msgid "A barcode can only be assigned to one product !"
+msgstr ""
+
+#. module: product_supplierinfo_barcode
+#: model:ir.model.fields,help:product_supplierinfo_barcode.field_product_supplierinfo__barcode
+msgid "Article number used by supplier for product identification."
+msgstr ""
+
+#. module: product_supplierinfo_barcode
+#: model:ir.model.fields,field_description:product_supplierinfo_barcode.field_product_supplierinfo__barcode
+msgid "Barcode"
+msgstr ""
+
+#. module: product_supplierinfo_barcode
+#: model:ir.model,name:product_supplierinfo_barcode.model_product_supplierinfo
+msgid "Supplier Pricelist"
+msgstr ""
+
+#. module: product_supplierinfo_barcode
+#: model_terms:ir.ui.view,arch_db:product_supplierinfo_barcode.product_template_search_view_supplier_code
+msgid "Supplier code"
+msgstr ""
From 41c1ad0013a12330329b3a35d494f3b938d28d10 Mon Sep 17 00:00:00 2001
From: Maria Sparenberg
Date: Tue, 1 Jun 2021 13:53:27 +0000
Subject: [PATCH 071/409] Translated using Weblate (German)
Currently translated at 100.0% (5 of 5 strings)
Translation: stock-logistics-barcode-12.0/stock-logistics-barcode-12.0-product_supplierinfo_barcode
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-12-0/stock-logistics-barcode-12-0-product_supplierinfo_barcode/de/
---
product_supplierinfo_barcode/i18n/de.po | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/product_supplierinfo_barcode/i18n/de.po b/product_supplierinfo_barcode/i18n/de.po
index 618af4399d2..913e9a8f1f4 100644
--- a/product_supplierinfo_barcode/i18n/de.po
+++ b/product_supplierinfo_barcode/i18n/de.po
@@ -6,35 +6,39 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2021-06-01 15:48+0000\n"
+"Last-Translator: Maria Sparenberg \n"
"Language-Team: none\n"
"Language: de\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 4.3.2\n"
#. module: product_supplierinfo_barcode
#: sql_constraint:product.supplierinfo:0
msgid "A barcode can only be assigned to one product !"
-msgstr ""
+msgstr "Ein Strichcode kann nur einem Produkt zugeordnet werden!"
#. module: product_supplierinfo_barcode
#: model:ir.model.fields,help:product_supplierinfo_barcode.field_product_supplierinfo__barcode
msgid "Article number used by supplier for product identification."
msgstr ""
+"Dies ist der Strichcode, der vom Hersteller/Lieferanten des Produkts zur "
+"Identifikation verwendet wird."
#. module: product_supplierinfo_barcode
#: model:ir.model.fields,field_description:product_supplierinfo_barcode.field_product_supplierinfo__barcode
msgid "Barcode"
-msgstr ""
+msgstr "Strichcode"
#. module: product_supplierinfo_barcode
#: model:ir.model,name:product_supplierinfo_barcode.model_product_supplierinfo
msgid "Supplier Pricelist"
-msgstr ""
+msgstr "Lieferantenpreisliste"
#. module: product_supplierinfo_barcode
#: model_terms:ir.ui.view,arch_db:product_supplierinfo_barcode.product_template_search_view_supplier_code
msgid "Supplier code"
-msgstr ""
+msgstr "Lieferanten-Produktcodes"
From 5704b07c072aa01221f05de21d4d02fd78519932 Mon Sep 17 00:00:00 2001
From: hkapatel
Date: Fri, 6 Aug 2021 10:42:13 +0530
Subject: [PATCH 072/409] [IMP] product_supplierinfo_barcode: black, isort,
prettier
---
product_supplierinfo_barcode/__manifest__.py | 3 +--
.../models/supplierinfo.py | 18 ++++++++++++------
.../views/product_views.xml | 11 +++++++----
.../views/supplierinfo_views.xml | 6 +++---
.../odoo/addons/product_supplierinfo_barcode | 1 +
setup/product_supplierinfo_barcode/setup.py | 6 ++++++
6 files changed, 30 insertions(+), 15 deletions(-)
create mode 120000 setup/product_supplierinfo_barcode/odoo/addons/product_supplierinfo_barcode
create mode 100644 setup/product_supplierinfo_barcode/setup.py
diff --git a/product_supplierinfo_barcode/__manifest__.py b/product_supplierinfo_barcode/__manifest__.py
index 1d2880c6991..39820c65fe7 100644
--- a/product_supplierinfo_barcode/__manifest__.py
+++ b/product_supplierinfo_barcode/__manifest__.py
@@ -21,6 +21,5 @@
"views/supplierinfo_views.xml",
"views/product_views.xml",
],
- "demo": [
- ],
+ "demo": [],
}
diff --git a/product_supplierinfo_barcode/models/supplierinfo.py b/product_supplierinfo_barcode/models/supplierinfo.py
index 816cd6b4e07..ea55751e06e 100644
--- a/product_supplierinfo_barcode/models/supplierinfo.py
+++ b/product_supplierinfo_barcode/models/supplierinfo.py
@@ -1,13 +1,19 @@
-from odoo import models, fields
+from odoo import fields, models
class SupplierInfo(models.Model):
_inherit = "product.supplierinfo"
barcode = fields.Char(
- 'Barcode', copy=False,
- help="Article number used by supplier for product identification.")
+ "Barcode",
+ copy=False,
+ help="Article number used by supplier for product identification.",
+ )
- _sql_constraints = [(
- 'barcode_uniq', 'unique(barcode)',
- "A barcode can only be assigned to one product !")]
+ _sql_constraints = [
+ (
+ "barcode_uniq",
+ "unique(barcode)",
+ "A barcode can only be assigned to one product !",
+ )
+ ]
diff --git a/product_supplierinfo_barcode/views/product_views.xml b/product_supplierinfo_barcode/views/product_views.xml
index 2d504e94e14..2a189bceee5 100644
--- a/product_supplierinfo_barcode/views/product_views.xml
+++ b/product_supplierinfo_barcode/views/product_views.xml
@@ -1,13 +1,16 @@
-
+
product_template_search_view_supplier_codeproduct.template
-
+
-
+
diff --git a/product_supplierinfo_barcode/views/supplierinfo_views.xml b/product_supplierinfo_barcode/views/supplierinfo_views.xml
index 85a47e4e671..018b617390e 100644
--- a/product_supplierinfo_barcode/views/supplierinfo_views.xml
+++ b/product_supplierinfo_barcode/views/supplierinfo_views.xml
@@ -1,13 +1,13 @@
-
+
product_supplierinfo_form_view_barcodeproduct.supplierinfo
-
+
-
+
diff --git a/setup/product_supplierinfo_barcode/odoo/addons/product_supplierinfo_barcode b/setup/product_supplierinfo_barcode/odoo/addons/product_supplierinfo_barcode
new file mode 120000
index 00000000000..6d65f087e4f
--- /dev/null
+++ b/setup/product_supplierinfo_barcode/odoo/addons/product_supplierinfo_barcode
@@ -0,0 +1 @@
+../../../../product_supplierinfo_barcode
\ No newline at end of file
diff --git a/setup/product_supplierinfo_barcode/setup.py b/setup/product_supplierinfo_barcode/setup.py
new file mode 100644
index 00000000000..28c57bb6403
--- /dev/null
+++ b/setup/product_supplierinfo_barcode/setup.py
@@ -0,0 +1,6 @@
+import setuptools
+
+setuptools.setup(
+ setup_requires=['setuptools-odoo'],
+ odoo_addon=True,
+)
From 70b6db8198d64de35f2a7d6ec72d3878b1e64d1d Mon Sep 17 00:00:00 2001
From: hkapatel
Date: Fri, 6 Aug 2021 12:19:47 +0530
Subject: [PATCH 073/409] [MIG] product_supplierinfo_barcode: Migration to 14.0
---
product_supplierinfo_barcode/__manifest__.py | 2 +-
product_supplierinfo_barcode/readme/CONTRIBUTORS.rst | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/product_supplierinfo_barcode/__manifest__.py b/product_supplierinfo_barcode/__manifest__.py
index 39820c65fe7..5257bea1f4c 100644
--- a/product_supplierinfo_barcode/__manifest__.py
+++ b/product_supplierinfo_barcode/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "Barcode in supplier pricelist",
"summary": "Add a barcode to supplier pricelist items",
- "version": "12.0.1.1.0",
+ "version": "14.0.1.0.0",
"development_status": "Beta",
"category": "Hidden",
"website": "https://github.com/OCA/stock-logistics-barcode",
diff --git a/product_supplierinfo_barcode/readme/CONTRIBUTORS.rst b/product_supplierinfo_barcode/readme/CONTRIBUTORS.rst
index b27b50b5074..a5f6360d951 100644
--- a/product_supplierinfo_barcode/readme/CONTRIBUTORS.rst
+++ b/product_supplierinfo_barcode/readme/CONTRIBUTORS.rst
@@ -1 +1,2 @@
* Lorenzo Battistini (https://takobi.online)
+* Helly kapatel
From 5cd5ee9cd42aa5692291afad3d67b53aa2d38753 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Sat, 14 Aug 2021 04:59:13 +0000
Subject: [PATCH 074/409] [UPD] addons table in README.md
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 7179e9a0ddd..68a96540412 100644
--- a/README.md
+++ b/README.md
@@ -17,9 +17,9 @@ TODO: add repo description.
Available addons
----------------
-addon | version | summary
---- | --- | ---
-[base_gs1_barcode](base_gs1_barcode/) | 14.0.1.0.1 | Decoding API for GS1-128 (aka UCC/EAN-128) and GS1-Datamatrix
+addon | version | maintainers | summary
+--- | --- | --- | ---
+[base_gs1_barcode](base_gs1_barcode/) | 14.0.1.0.1 | | Decoding API for GS1-128 (aka UCC/EAN-128) and GS1-Datamatrix
[//]: # (end addons)
From e0a092edf96713bb503354cdc4f744e3731d8660 Mon Sep 17 00:00:00 2001
From: Zar21
Date: Wed, 19 May 2021 12:09:15 +0200
Subject: [PATCH 075/409] [MIG] barcodes_generator_abstract: Migration to 14.0
---
barcodes_generator_abstract/__manifest__.py | 4 +-
barcodes_generator_abstract/i18n/es_ES.po | 198 -------------------
barcodes_generator_abstract/readme/USAGE.rst | 22 +++
barcodes_generator_abstract/tests/models.py | 8 +-
requirements.txt | 2 +-
test-requirements.txt | 1 +
6 files changed, 32 insertions(+), 203 deletions(-)
delete mode 100644 barcodes_generator_abstract/i18n/es_ES.po
create mode 100644 test-requirements.txt
diff --git a/barcodes_generator_abstract/__manifest__.py b/barcodes_generator_abstract/__manifest__.py
index 77674d9d4e9..53ba5b7db6b 100644
--- a/barcodes_generator_abstract/__manifest__.py
+++ b/barcodes_generator_abstract/__manifest__.py
@@ -7,7 +7,7 @@
{
"name": "Generate Barcodes (Abstract)",
"summary": "Generate Barcodes for Any Models",
- "version": "13.0.1.0.0",
+ "version": "14.0.1.0.0",
"category": "Tools",
"author": "GRAP, La Louve, LasLabs, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-barcode",
@@ -19,5 +19,5 @@
"views/menu.xml",
],
"demo": ["demo/res_users.xml"],
- "external_dependencies": {"python": ["barcode"]},
+ "external_dependencies": {"python": ["python-barcode"]},
}
diff --git a/barcodes_generator_abstract/i18n/es_ES.po b/barcodes_generator_abstract/i18n/es_ES.po
deleted file mode 100644
index 7b8e83523d2..00000000000
--- a/barcodes_generator_abstract/i18n/es_ES.po
+++ /dev/null
@@ -1,198 +0,0 @@
-# Translation of Odoo Server.
-# This file contains the translation of the following modules:
-# * barcodes_generator_abstract
-#
-# Translators:
-# Fernando Lara , 2017
-# OCA Transbot , 2017
-msgid ""
-msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-12-02 01:48+0000\n"
-"PO-Revision-Date: 2017-12-02 01:48+0000\n"
-"Last-Translator: OCA Transbot , 2017\n"
-"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/"
-"es_ES/)\n"
-"Language: es_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: barcodes_generator_abstract
-#: model:ir.model.fields,help:barcodes_generator_abstract.field_barcode_generate_mixin__generate_type
-#: model:ir.model.fields,help:barcodes_generator_abstract.field_barcode_rule__generate_type
-msgid ""
-"Allow to generate barcode, including a number (a base) in the final "
-"barcode.\n"
-" 'Base Set Manually' : User should set manually the value of the barcode "
-"base\n"
-" 'Base managed by Sequence': User will use a button to generate a new base. "
-"This base will be generated by a sequence"
-msgstr ""
-"Permitir generar código de barras, incluyendo un número (una base) en el "
-"código de barras final.'U+23CE'\n"
-"'Base Set Manually': El usuario debe establecer manualmente el valor del "
-"código de barras base'U+23CE'\n"
-"'Base administrada por Secuencia': El usuario utilizará un botón para "
-"generar una nueva base. Esta base será generada por una secuencia"
-
-#. module: barcodes_generator_abstract
-#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_rule__generate_automate
-msgid "Automatic Generation"
-msgstr ""
-
-#. module: barcodes_generator_abstract
-#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_generate_mixin__barcode_base
-msgid "Barcode Base"
-msgstr "Base de código de barras"
-
-#. module: barcodes_generator_abstract
-#: model_terms:ir.ui.view,arch_db:barcodes_generator_abstract.view_barcode_rule_form
-msgid "Barcode Generation"
-msgstr "Generación de códogo de barras"
-
-#. module: barcodes_generator_abstract
-#: model:ir.ui.menu,name:barcodes_generator_abstract.menu_barcode_rule
-msgid "Barcode Nomenclatures"
-msgstr "Nomenclaturas del código de barras"
-
-#. module: barcodes_generator_abstract
-#: model:ir.model,name:barcodes_generator_abstract.model_barcode_rule
-#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_generate_mixin__barcode_rule_id
-msgid "Barcode Rule"
-msgstr "Regla del codigo de barras"
-
-#. module: barcodes_generator_abstract
-#: selection:barcode.rule,generate_type:0
-msgid "Base managed by Sequence"
-msgstr "Base administrada por Secuencia"
-
-#. module: barcodes_generator_abstract
-#: selection:barcode.rule,generate_type:0
-msgid "Base set Manually"
-msgstr "Juego de opciones manualmente"
-
-#. module: barcodes_generator_abstract
-#: model:ir.model.fields,help:barcodes_generator_abstract.field_barcode_rule__generate_automate
-msgid ""
-"Check this to automatically generate a barcode upon creation of a new record "
-"in the mixed model."
-msgstr ""
-
-#. module: barcodes_generator_abstract
-#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_generate_mixin__display_name
-msgid "Display Name"
-msgstr "Nombre para mostrar"
-
-#. module: barcodes_generator_abstract
-#: model:ir.model,name:barcodes_generator_abstract.model_barcode_generate_mixin
-#, fuzzy
-msgid "Generate Barcode Mixin"
-msgstr "Generar códigos de barras"
-
-#. module: barcodes_generator_abstract
-#: model:res.groups,name:barcodes_generator_abstract.generate_barcode
-msgid "Generate Barcodes"
-msgstr "Generar códigos de barras"
-
-#. module: barcodes_generator_abstract
-#: code:addons/barcodes_generator_abstract/models/barcode_generate_mixin.py:55
-#, python-format
-msgid ""
-"Generate Base can be used only with barcode rule with 'Generate Type' set to "
-"'Base managed by Sequence'"
-msgstr ""
-"Generate Base se puede utilizar sólo con regla de código de barras con "
-"'Generate Type' establecido en 'Base administrada por Secuencia'"
-
-#. module: barcodes_generator_abstract
-#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_rule__generate_model
-msgid "Generate Model"
-msgstr "Generar Modelo"
-
-#. module: barcodes_generator_abstract
-#: model_terms:ir.ui.view,arch_db:barcodes_generator_abstract.view_barcode_rule_form
-msgid "Generate Sequence"
-msgstr "Generar Secuencia"
-
-#. module: barcodes_generator_abstract
-#: code:addons/barcodes_generator_abstract/models/barcode_rule.py:104
-#, python-format
-msgid ""
-"Generate Sequence is possible only if 'Generate Type' is set to 'Base "
-"managed by Sequence'"
-msgstr ""
-"Generar Secuencia es posible únicamente sí 'Generar Tipo' se establece en "
-"'Base administrada por Secuencia'"
-
-#. module: barcodes_generator_abstract
-#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_generate_mixin__generate_type
-#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_rule__generate_type
-msgid "Generate Type"
-msgstr "Generar Tipo"
-
-#. module: barcodes_generator_abstract
-#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_generate_mixin__id
-msgid "ID"
-msgstr "ID"
-
-#. module: barcodes_generator_abstract
-#: model:ir.model.fields,help:barcodes_generator_abstract.field_barcode_rule__generate_model
-msgid "If 'Generate Type' is set, mention the model related to this rule."
-msgstr ""
-
-#. module: barcodes_generator_abstract
-#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_generate_mixin____last_update
-msgid "Last Modified on"
-msgstr "Última modificación en"
-
-#. module: barcodes_generator_abstract
-#: selection:barcode.rule,generate_type:0
-msgid "No generation"
-msgstr "Ninguna generación"
-
-#. module: barcodes_generator_abstract
-#: code:addons/barcodes_generator_abstract/models/barcode_rule.py:82
-#, python-format
-msgid "Only one rule per model can be used for automatic barcode generation."
-msgstr ""
-
-#. module: barcodes_generator_abstract
-#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_rule__padding
-msgid "Padding"
-msgstr "Relleno"
-
-#. module: barcodes_generator_abstract
-#: selection:barcode.rule,generate_model:0
-msgid "Partners"
-msgstr ""
-
-#. module: barcodes_generator_abstract
-#: selection:barcode.rule,generate_model:0
-msgid "Products"
-msgstr ""
-
-#. module: barcodes_generator_abstract
-#: code:addons/barcodes_generator_abstract/models/barcode_rule.py:114
-#, python-format
-msgid "Sequence - %s"
-msgstr "Secuencia - %s"
-
-#. module: barcodes_generator_abstract
-#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_rule__sequence_id
-#, fuzzy
-msgid "Sequence Id"
-msgstr "Secuencia"
-
-#. module: barcodes_generator_abstract
-#: selection:barcode.rule,generate_model:0
-msgid "Stock Location"
-msgstr ""
-
-#~ msgid "barcode.generate.mixin"
-#~ msgstr "unir.generar.barra de codigos"
-
-#~ msgid "barcode.rule"
-#~ msgstr "regla.barra de codigos"
diff --git a/barcodes_generator_abstract/readme/USAGE.rst b/barcodes_generator_abstract/readme/USAGE.rst
index 6a02b2230c9..0c4d724f55e 100644
--- a/barcodes_generator_abstract/readme/USAGE.rst
+++ b/barcodes_generator_abstract/readme/USAGE.rst
@@ -6,3 +6,25 @@ model.
Alternatively, you can develop a custom module for a custom model. See
'Inheritance' parts.
+
+If you want to generate barcode for another model, you can create a custom
+module that depend on 'barcodes_generator_abstract' and inherit your model
+like that:
+
+.. code::
+
+ class MyModel(models.Model):
+ _name = 'my.model'
+ _inherit = ['my.model', 'barcode.generate.mixin']
+
+ class barcode_rule(models.Model):
+ _inherit = 'barcode.rule'
+
+ generate_model = fields.Selection(selection_add=[('my.model', 'My Model')])
+
+Eventually, you should inherit your model view adding buttons and fields.
+
+Note
+~~~~
+
+Your model should have a field 'barcode' defined.
diff --git a/barcodes_generator_abstract/tests/models.py b/barcodes_generator_abstract/tests/models.py
index 05eb894e0d1..b7d93dcbd04 100644
--- a/barcodes_generator_abstract/tests/models.py
+++ b/barcodes_generator_abstract/tests/models.py
@@ -6,9 +6,13 @@
class BarcodeRuleUserFake(models.Model):
_inherit = "barcode.rule"
- generate_model = fields.Selection(selection_add=[("res.users", "Users")])
+ generate_model = fields.Selection(
+ selection_add=[("res.users", "Users")], ondelete={"res.users": "cascade"}
+ )
- type = fields.Selection(selection_add=[("user", "User")])
+ type = fields.Selection(
+ selection_add=[("user", "User")], ondelete={"user": "cascade"}
+ )
class BarcodeGeneratorUserFake(models.Model):
diff --git a/requirements.txt b/requirements.txt
index a79665d79aa..14e0d5cbe9f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,2 +1,2 @@
# generated from manifests external_dependencies
-barcode
+python-barcode
diff --git a/test-requirements.txt b/test-requirements.txt
new file mode 100644
index 00000000000..66bc2cbae3f
--- /dev/null
+++ b/test-requirements.txt
@@ -0,0 +1 @@
+odoo_test_helper
From fcadcb4919adca8ca70aaa27ef66c59cfb6a5961 Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Tue, 15 Dec 2020 23:55:30 +0100
Subject: [PATCH 076/409] barcodes_generator_abstract: Fix warning
Improve form view of barcode rules
Improve README
Auto-add admin to the group
---
.../models/barcode_generate_mixin.py | 4 ----
.../readme/DESCRIPTION.rst | 20 +++++++++----------
.../security/res_groups.xml | 4 ++++
.../views/view_barcode_rule.xml | 4 +---
4 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/barcodes_generator_abstract/models/barcode_generate_mixin.py b/barcodes_generator_abstract/models/barcode_generate_mixin.py
index f5398a1a8b2..35838f9c162 100644
--- a/barcodes_generator_abstract/models/barcode_generate_mixin.py
+++ b/barcodes_generator_abstract/models/barcode_generate_mixin.py
@@ -10,8 +10,6 @@
from odoo import _, api, exceptions, fields, models
-from .barcode_rule import _GENERATE_TYPE
-
_logger = logging.getLogger(__name__)
@@ -28,8 +26,6 @@ class BarcodeGenerateMixin(models.AbstractModel):
generate_type = fields.Selection(
string="Generate Type",
- selection=_GENERATE_TYPE,
- readonly=True,
related="barcode_rule_id.generate_type",
)
diff --git a/barcodes_generator_abstract/readme/DESCRIPTION.rst b/barcodes_generator_abstract/readme/DESCRIPTION.rst
index 1b636dada01..8175f6914ca 100644
--- a/barcodes_generator_abstract/readme/DESCRIPTION.rst
+++ b/barcodes_generator_abstract/readme/DESCRIPTION.rst
@@ -1,21 +1,21 @@
This module extends Odoo functionality, allowing user to generate barcode
depending on a given barcode rule for any Model.
-For example, a typical pattern for products is "20.....{NNNDD}" that means
-that:
-* the EAN13 code will begin by '20'
-* followed by 5 digits (named Barcode Base in this module)
-* and after 5 others digits to define the variable price
-* a 13 digit control
+For example, if the barcode pattern is "20.....{NNNDD}":
+
+* the EAN13 code will begin with '20',
+* followed by 5 digits (named *Barcode Base* in this module),
+* followed by 5 others digits to define the variable price with 2 decimals,
+* the last digit (the 13rd digit) is the control digit (i.e. the checksum).
With this module, it is possible to:
* Affect a pattern (barcode.rule) to a model
* Define a Barcode base:
- * manually, if the base of the barcode must be set by a user. (typically an
- internal code defined in your company)
- * automaticaly by a sequence, if you want to let Odoo to increment a
- sequence. (typical case of a customer number incrementation)
+ * manually, if the base of the barcode must be set by a user (typically an
+ internal code defined in your company).
+ * automatically by a sequence, if you want to let Odoo increment a
+ sequence (typical case of a customer number incrementation).
* Generate a barcode, based on the defined pattern and the barcode base
diff --git a/barcodes_generator_abstract/security/res_groups.xml b/barcodes_generator_abstract/security/res_groups.xml
index c78692a080d..6b9f3beff0f 100644
--- a/barcodes_generator_abstract/security/res_groups.xml
+++ b/barcodes_generator_abstract/security/res_groups.xml
@@ -8,5 +8,9 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
Generate Barcodes
+
diff --git a/barcodes_generator_abstract/views/view_barcode_rule.xml b/barcodes_generator_abstract/views/view_barcode_rule.xml
index a4bdfcf5496..1a1b8a9b143 100644
--- a/barcodes_generator_abstract/views/view_barcode_rule.xml
+++ b/barcodes_generator_abstract/views/view_barcode_rule.xml
@@ -14,7 +14,6 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
@@ -30,13 +29,12 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
name="generate_automate"
attrs="{'invisible': [('generate_type', '=', 'no')]}"
/>
-
Date: Tue, 17 Aug 2021 06:37:56 +0000
Subject: [PATCH 077/409] [UPD] Update barcodes_generator_abstract.pot
---
.../i18n/barcodes_generator_abstract.pot | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/barcodes_generator_abstract/i18n/barcodes_generator_abstract.pot b/barcodes_generator_abstract/i18n/barcodes_generator_abstract.pot
index 582faf645fb..1808f099810 100644
--- a/barcodes_generator_abstract/i18n/barcodes_generator_abstract.pot
+++ b/barcodes_generator_abstract/i18n/barcodes_generator_abstract.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 13.0\n"
+"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -67,6 +67,7 @@ msgstr ""
#. module: barcodes_generator_abstract
#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_generate_mixin__display_name
+#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_rule__display_name
msgid "Display Name"
msgstr ""
@@ -114,6 +115,7 @@ msgstr ""
#. module: barcodes_generator_abstract
#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_generate_mixin__id
+#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_rule__id
msgid "ID"
msgstr ""
@@ -124,6 +126,7 @@ msgstr ""
#. module: barcodes_generator_abstract
#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_generate_mixin____last_update
+#: model:ir.model.fields,field_description:barcodes_generator_abstract.field_barcode_rule____last_update
msgid "Last Modified on"
msgstr ""
From 8d9f36e123857a4a0b3038b44c7d88f139ba33ee Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Tue, 17 Aug 2021 06:41:00 +0000
Subject: [PATCH 078/409] [UPD] addons table in README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 68a96540412..d6f17d6a352 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,7 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
+[barcodes_generator_abstract](barcodes_generator_abstract/) | 14.0.1.0.0 | | Generate Barcodes for Any Models
[base_gs1_barcode](base_gs1_barcode/) | 14.0.1.0.1 | | Decoding API for GS1-128 (aka UCC/EAN-128) and GS1-Datamatrix
[//]: # (end addons)
From e5a9b62a9371b078f1579e7510c2c2639342b967 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Tue, 17 Aug 2021 06:41:01 +0000
Subject: [PATCH 079/409] [UPD] README.rst
---
barcodes_generator_abstract/README.rst | 52 ++++++---
.../static/description/index.html | 100 +++++++++++-------
2 files changed, 98 insertions(+), 54 deletions(-)
diff --git a/barcodes_generator_abstract/README.rst b/barcodes_generator_abstract/README.rst
index 0b5392aff07..ea417d61b1b 100644
--- a/barcodes_generator_abstract/README.rst
+++ b/barcodes_generator_abstract/README.rst
@@ -14,13 +14,13 @@ Generate Barcodes (Abstract)
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--barcode-lightgray.png?logo=github
- :target: https://github.com/OCA/stock-logistics-barcode/tree/13.0/barcodes_generator_abstract
+ :target: https://github.com/OCA/stock-logistics-barcode/tree/14.0/barcodes_generator_abstract
:alt: OCA/stock-logistics-barcode
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/stock-logistics-barcode-13-0/stock-logistics-barcode-13-0-barcodes_generator_abstract
+ :target: https://translation.odoo-community.org/projects/stock-logistics-barcode-14-0/stock-logistics-barcode-14-0-barcodes_generator_abstract
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/150/13.0
+ :target: https://runbot.odoo-community.org/runbot/150/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -28,22 +28,22 @@ Generate Barcodes (Abstract)
This module extends Odoo functionality, allowing user to generate barcode
depending on a given barcode rule for any Model.
-For example, a typical pattern for products is "20.....{NNNDD}" that means
-that:
-* the EAN13 code will begin by '20'
-* followed by 5 digits (named Barcode Base in this module)
-* and after 5 others digits to define the variable price
-* a 13 digit control
+For example, if the barcode pattern is "20.....{NNNDD}":
+
+* the EAN13 code will begin with '20',
+* followed by 5 digits (named *Barcode Base* in this module),
+* followed by 5 others digits to define the variable price with 2 decimals,
+* the last digit (the 13rd digit) is the control digit (i.e. the checksum).
With this module, it is possible to:
* Affect a pattern (barcode.rule) to a model
* Define a Barcode base:
- * manually, if the base of the barcode must be set by a user. (typically an
- internal code defined in your company)
- * automaticaly by a sequence, if you want to let Odoo to increment a
- sequence. (typical case of a customer number incrementation)
+ * manually, if the base of the barcode must be set by a user (typically an
+ internal code defined in your company).
+ * automatically by a sequence, if you want to let Odoo increment a
+ sequence (typical case of a customer number incrementation).
* Generate a barcode, based on the defined pattern and the barcode base
@@ -99,6 +99,28 @@ model.
Alternatively, you can develop a custom module for a custom model. See
'Inheritance' parts.
+If you want to generate barcode for another model, you can create a custom
+module that depend on 'barcodes_generator_abstract' and inherit your model
+like that:
+
+.. code::
+
+ class MyModel(models.Model):
+ _name = 'my.model'
+ _inherit = ['my.model', 'barcode.generate.mixin']
+
+ class barcode_rule(models.Model):
+ _inherit = 'barcode.rule'
+
+ generate_model = fields.Selection(selection_add=[('my.model', 'My Model')])
+
+Eventually, you should inherit your model view adding buttons and fields.
+
+Note
+~~~~
+
+Your model should have a field 'barcode' defined.
+
Development
===========
@@ -136,7 +158,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -181,6 +203,6 @@ 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/stock-logistics-barcode `_ project on GitHub.
+This module is part of the `OCA/stock-logistics-barcode `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/barcodes_generator_abstract/static/description/index.html b/barcodes_generator_abstract/static/description/index.html
index 54d19d20f53..433f9625bf1 100644
--- a/barcodes_generator_abstract/static/description/index.html
+++ b/barcodes_generator_abstract/static/description/index.html
@@ -367,25 +367,26 @@
Generate Barcodes (Abstract)
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module extends Odoo functionality, allowing user to generate barcode
depending on a given barcode rule for any Model.
-
For example, a typical pattern for products is “20…..{NNNDD}” that means
-that:
-* the EAN13 code will begin by ‘20’
-* followed by 5 digits (named Barcode Base in this module)
-* and after 5 others digits to define the variable price
-* a 13 digit control
+
For example, if the barcode pattern is “20…..{NNNDD}”:
+
+
the EAN13 code will begin with ‘20’,
+
followed by 5 digits (named Barcode Base in this module),
+
followed by 5 others digits to define the variable price with 2 decimals,
+
the last digit (the 13rd digit) is the control digit (i.e. the checksum).
+
With this module, it is possible to:
Affect a pattern (barcode.rule) to a model
Define a Barcode base:
-
manually, if the base of the barcode must be set by a user. (typically an
-internal code defined in your company)
-
automaticaly by a sequence, if you want to let Odoo to increment a
-sequence. (typical case of a customer number incrementation)
+
manually, if the base of the barcode must be set by a user (typically an
+internal code defined in your company).
+
automatically by a sequence, if you want to let Odoo increment a
+sequence (typical case of a customer number incrementation).
This module is an abstract module. You can configure Barcode Rule, but to
enable this feature, you need to install an extra module for a given model.
This repository provide ‘barcodes_generator_product’ and
@@ -466,9 +470,27 @@
Alternatively, you can develop a custom module for a custom model. See
‘Inheritance’ parts.
+
If you want to generate barcode for another model, you can create a custom
+module that depend on ‘barcodes_generator_abstract’ and inherit your model
+like that:
If you want to generate barcode for another model, you can create a custom
module that inherits on ‘barcodes_generator_abstract’ and inherit your model
like that:
Bugs are tracked on GitHub 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.
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.