[18.0][ADD] pos_automatic_cashdrawer_cashlogy#10
Conversation
1b555d4 to
e8358c1
Compare
8595408 to
e0bd479
Compare
nguyenminhchien
left a comment
There was a problem hiding this comment.
Take the benefit from configuration of native Odoo, this module just allows to connect to a different ip/port from the IoT box.
| help="An automatic cashdrawer is available on the Proxy", | ||
| ) | ||
|
|
||
| iface_automatic_cashdrawer_ip_address = fields.Char( |
There was a problem hiding this comment.
I found no usage of this field nor iface_automatic_cashdrawer_tcp_port
| ), | ||
| ) | ||
|
|
||
| group_pos_automatic_cashlogy_config = fields.Many2one( |
There was a problem hiding this comment.
This group is used to show Cashlogy Amin in menu POS
| useProxy() { | ||
| return this.config.iface_automatic_cashdrawer || super.useProxy(...arguments); | ||
| }, | ||
| async checkOpeningBalanceMissing() { |
There was a problem hiding this comment.
I found no place call this function
| async callAutomaticCashdrawerDisplayTransactionStart(amount, options = {}) { | ||
| try { | ||
| this.ui.block(); | ||
| const res = await this.hardwareProxy.message( |
There was a problem hiding this comment.
You should not call message or harwareProxy. This module will connect to different ip:port from IoT box.
Just reminding you that native Odoo has already support cashbox feature.
This module extends that feature by connecting to different server than the one of IoT.
There was a problem hiding this comment.
Using sendCashlogy() to call cashlogy via rpc service
| class PosPaymentMethod(models.Model): | ||
| _inherit = "pos.payment.method" | ||
|
|
||
| iface_automatic_cashdrawer = fields.Boolean( |
There was a problem hiding this comment.
No need this one, using the cash control from native Odoo.
| class ResConfigSettings(models.TransientModel): | ||
| _inherit = "res.config.settings" | ||
|
|
||
| pos_iface_automatic_cashdrawer = fields.Boolean( |
e0bd479 to
76dac0b
Compare
Screencast.from.2026-01-27.14-59-37.webm |
Help me check this feature, I didn't test it in v12.0 |
| // FIXME: error? | ||
| _showError(error) { | ||
| this.dialog.closeAll(); | ||
| const message = error ? error?.data?.message : _t("Cashdrawer not connected"); |
| // FIXME: error? | ||
| _showError(error) { | ||
| this.dialog.closeAll(); | ||
| const message = error ? error?.data?.message : _t("Cashdrawer not connected"); |
|
@nguyenminhchien Error when clicking on "Empty Stacker" In Fakebox, when call "display_empty_stacker" endpoint => return a This reponse is used to show currency value, so I think it cannot a boolean |
No syntax error in any case. |
76dac0b to
1ab9f7e
Compare
| await this.pos.sendCashlogy("print_xml_receipt", { | ||
| receipt: xmlReportElement.outerHTML, | ||
| }); | ||
| this.notification.add(_t("Print Inventory Successfully")); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| await this.pos.sendCashlogy("print_xml_receipt", { | ||
| receipt: xmlReportElement.outerHTML, | ||
| }); | ||
| this.notification.add(_t("Close Till / ADDED Successfully")); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| await this.pos.sendCashlogy("print_xml_receipt", { | ||
| receipt: xmlReportElement.outerHTML, | ||
| }); | ||
| this.notification.add(_("Close Till / DISPENSED Successfully")); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| await this.pos.sendCashlogy("print_xml_receipt", { | ||
| receipt: xmlReportElement.outerHTML, | ||
| }); | ||
| this.notification.add(_t("Send Cancel Successfully")); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| await this.pos.sendCashlogy("print_xml_receipt", { | ||
| receipt: xmlReportElement.outerHTML, | ||
| }); | ||
| this.notification.add(_t("Complete Emptying Successfully")); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| await this.pos.sendCashlogy("print_xml_receipt", { | ||
| receipt: xmlReportElement.outerHTML, | ||
| }); | ||
| this.notification.add(_t("Empty Stacker Successfully")); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| } | ||
|
|
||
| async action_display_backoffice() { | ||
| return await this.pos.callAutomaticCashlogyDisplayBackoffice(); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
1ab9f7e to
7056006
Compare
| * HELPERS | ||
| **/ | ||
|
|
||
| _getCashlogyIP() { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
7056006 to
71efdf0
Compare
Currently translated at 100.0% (80 of 80 strings) Translation: foodcoops-12.0/foodcoops-12.0-pos_automatic_cashdrawer Translate-URL: https://translate.druidoo.io/projects/foodcoops-12-0/foodcoops-12-0-pos_automatic_cashdrawer/fr/
2b0e5b7 to
6e6668f
Compare
|
@nguyenminhchien, I renamed Consider the same module: |
6e6668f to
0411368
Compare
0411368 to
9cded52
Compare







This module was initially part of the Foodcoop set of addons. We're now migrating it to 18.0 and taking this occasion to contribute it to OCA.