-
-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[10.0] Migrate printer_zpl2 module #81
Conversation
Thanks for the contribution @alnslang. #68 already had the base_report_to_printer upgraded, so I went ahead and merged it. Can you please rebase onto the current 10.0 so that this PR becomes exclusive to |
2c68018
to
9467abf
Compare
@lasley I rebase my branch and remove my modifications about base_report_to_printer. Now, my PR becomes exclusive to printer_zpl2. |
@alnslang - Looks like tests are failing due to a missing dependency. Please create a Looks like this is done incorrectly on the other branches; I'll submit a PR to fix those. |
Thanks @lasley for your help. I just adding requirements.txt in root directory |
567a861
to
b00ee41
Compare
* [FIX] printer_tray: Allow to call print_option with no report * [ADD] Add printer_zpl2 module
b00ee41
to
6873ed9
Compare
Greetings ! |
Hi @blutecsolutions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments, nothing major
printer_zpl2/__manifest__.py
Outdated
|
||
{ | ||
'name': 'Printer ZPL II', | ||
'version': '9.0.1.0.0', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10.0.1.0.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was already changed, I don't know how you commented on that line...
printer_zpl2/__manifest__.py
Outdated
'author': 'SYLEAM, Odoo Community Association (OCA)', | ||
'website': 'http://www.syleam.fr/', | ||
'license': 'AGPL-3', | ||
'external_dependancies': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/external_dependancies/external_dependencies
6873ed9
to
f623f23
Compare
Typo fixed, good catch @lasley :) |
Instead of just waiting, you could provide the second review we need to merge it. |
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
--> | ||
<odoo> | ||
<menuitem id="base_report_to_printer.printing_menu_label" parent="base_report_to_printer.printing_menu" name="Labels" sequence="50"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the base_report_to_printer.
from this ID in order to clear up the Runbot warning
id="printing_menu_label"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
base_report_to_printer. removed.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal was to "provide" a unique menu for labels.
If another module wants to provide labels, it will create a new menu (in this case, this "Labels" menu is useless), or need to depend on printer_zpl2...
How could we achieve this ? Add the "Labels" menu in the base_report_to_printer module instead ?
f623f23
to
a7700db
Compare
Can we download this module ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small details
help='Origin point of the contents in the label, Y coordinate.') | ||
width = fields.Integer( | ||
required=True, default=480, | ||
help='With of the label, will be set on the printer before printing.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Width
], required=True, default=zpl2.ORIENTATION_NORMAL, | ||
help='Orientation of the barcode.') | ||
check_digits = fields.Boolean( | ||
help='Check if you want to compute and print the check digit.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check digit or check sum?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's called check digit in the documentation : https://www.zebra.com/content/dam/zebra/manuals/en-us/software/zpl-zbi2-pm-en.pdf (page 1299).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
a7700db
to
0328f57
Compare
@elicoidal Thanks, typo fixed. |
@sylvain-garancher Excellent contribution :) |
@lasley @pedrobaeza This PR is ready to merge. |
No description provided.