-
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] barcodes_generator_abstract: pre-commit auto fixes
- Loading branch information
Showing
19 changed files
with
220 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
|
||
|
||
class BarcodeRule(models.Model): | ||
|
||
_inherit = "barcode.rule" | ||
|
||
# Column Section | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
To configure this module, you need to: | ||
|
||
- Go to Settings / Technical / Sequences & Identifiers / Barcode | ||
Nomenclatures | ||
- Select a Nomenclature | ||
- Create or select a rule | ||
|
||
 | ||
|
||
- For manual generation, set: | ||
- 'Base set Manually' in 'Generate Type' | ||
- Set the model | ||
|
||
 | ||
|
||
- For automatic generation, set: | ||
- 'Base managed by Sequence' in 'Generate Type' | ||
- Set the model | ||
- Generate a new sequence by button, or affect a existing one | ||
|
||
 | ||
|
||
In all cases, padding will be computed automaticaly, based on the number | ||
of '.' in the Barcode Pattern field. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- Sylvain LE GAL (<https://twitter.com/legalsylvain>) | ||
- Dave Lasley \<<dave@laslabs.com>\> | ||
- [Tecnativa](https://www.tecnativa.com): | ||
- Carlos Roca | ||
- [Ooops404](https://www.ooops404.com): | ||
- Ilyas \<<irazor147@gmail.com>\> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Images | ||
|
||
- Icon of the module is based on the Oxygen Team work and is under LGPL | ||
licence: | ||
<http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org.html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
This module extends Odoo functionality, allowing user to generate | ||
barcode depending on a given barcode rule for any Model. | ||
|
||
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). | ||
- 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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This module use an extra python library named 'python-barcode' you | ||
should install to make barcode generation works properly. | ||
|
||
`sudo pip install python-barcode` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- On barcode.rule model, constraint and domain system could be set | ||
between 'type' and 'generate_model' fields. | ||
- Cache is being cleared in a constraint in barcode.rule. Mutating in a | ||
constraint is bad practice & should be moved somewhere. |
Oops, something went wrong.