summaryrefslogtreecommitdiff
path: root/addons/pos_restaurant/static/src/js/multiprint.js
AgeCommit message (Collapse)Author
2020-05-12[REF] pos_restaurant: migration to OWL frameworkJoseph Caburnay
2020-01-24[FIX] point_of_sale,pos_restaurant: MultiprintAntoine Prieels
Printed receipts are transformed into images by placing them into an hidden `div`. When trying to print multiple orders, we did not wait correctly between rendering the different receipts. Receipts were then overriding one another while they were being rendered, resulting in errors and missing receipts. closes odoo/odoo#43907 X-original-commit: 00ba908d7b3d8b1145e4161ea8d9011ff6eea33d Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-01-07[FIX] pos_restaurant: resume shop when pos_restaurant is installedJoseph Caburnay
This is a followup to the fix made in 99615ff6cc0559f6661001e5493876f2d5b69248. When calling JSON.stringify to undefined, it results to undefined, thus, it is necessary to check if the value is undefined before JSON.parse'ing it. closes odoo/odoo#42812 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-12-24[FIX] pos_restaurant: double printing not allowed.Robin Heinz
Before this, when we printed a ticket for the kitchen, if we went back to the table management and go back to the order, we could re print the same product. Now, we can only reprint the order if there is something different. closes odoo/odoo#42208 Task-id: 2123029 X-original-commit: c8f604045eb0d476766641386c4e5e1605b915c3 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-08-22[FIX] pos_epson_printer_restaurant: call to superPierre Masereel
The model PosModel is extended, and super is calaled as if it was included, we have fixed it by calling the parent prototype correctly.
2019-08-08[IMP] pos_restaurant: Order printers with HTTPSAntoine Prieels
To use a kitchen printer, the user can only enter the IP of the Box and it would be transformed into an URL with the protocol and port number. This only supported HTTP so people that used HTTPS needed to enter the full url to their Box.
2019-08-08[REF] pos: Replace hw_escpos by PrinterDriverAntoine Prieels
ESCPOS printers are now supported as IoT Devices, just like any other printer. We now transform the receipts to JPGs, transform these JPGs into ESCPOS commands and send them via Cups, adding support for network printers. Since we now print images, we can now print special characters and therefore add support for other languages such as Arabic. The JPG is generated in the browser, with the help of html2canvas. `hw_escpos` is left untouched to allow backward compatibility and should be removed when v12 is no longer supported. In the PoS, all the code for printing has been moved from ProxyDevice to a separated JS file. TaskID: 1939455
2018-11-16[MERGE] forward port branch saas-11.3 up to bab2a191d29Christophe Simonis
2018-11-15[MERGE] forward port branch saas-15 up to 3c78026dc0fChristophe Simonis
2018-11-13[FIX] check mp_dirty to avoid repeated renderingGabbasovDinar
The patch fixes the issue related to repeated orderline rerendering. It means that if products of the order were printed before, those will not be rendered again when new updates of order is sent to the kitchen. Closes #28577
2018-06-29[MERGE] forward port branch saas-11.4 up to d54a3726ecaChristophe Simonis
2018-06-26[MERGE] forward port branch saas-15 up to bda926034a0Christophe Simonis
2018-06-25[FIX] pos_restaurant: don't crash when printer have no url setLucas Perais (lpe)
Have a printer in a pos.config that doesn't have a url set Open the pos Before this commit, there was a JS traceback, since we tried to call string operation on undefined. After this commit, we avoid the traceback with a behavior that *looks like* the v9.0's i.e. we don't care if the url actually means something, we put a message in the console though OPW 1858063 closes #25442
2018-06-22[FIX] *: Avoid BlockUI for some rpcAdrien Dieudonne
Before this commit, the point of sale displayed a loading message every 5 secondes if the barcode scanner was configured. This issue is due to the following commit: @1aacc96 After this commit,some calls may block the interface when they did not do it before. It concerns all rpc done with ajax.rpc and all done with a new session. We have now to explicitly set shadow property. opw-1860493
2018-06-13[IMP] pos_restaurant: possibility to redefine new buttons and screensDinar
Was not able to make inheritance "action_button" and "screens" POS Restaurant objects via "extend" or "include" functions. Closes #25150
2018-02-08[FIX] web: properly set parent when using mixinsChristophe Matthieu
The parentedMixin doesn't automatically set the parent, so when this mixin is used, the parent must be set manually. This wasn't done at several places, and thus those elements weren't destroyed with their actual parent. In master, we should probably make the ParentedMixin set the parent itself.
2018-02-08[FIX] web: properly set parent when using mixinsChristophe Matthieu
The parentedMixin doesn't automatically set the parent, so when this mixin is used, the parent must be set manually. This wasn't done at several places, and thus those elements weren't destroyed with their actual parent. In master, we should probably make the ParentedMixin set the parent itself.
2017-08-23[MERGE] forward port branch saas-15 up to d5f2a38b50cChristophe Simonis
2017-08-18[FIX] pos_restaurant: wrap product names on OrderChangeReceiptJoren Van Onder
Reuse generate_wrapped_product_name() which was implemented for regular POS receipts at 62a8def91889bbe8f2207bb4c0067f2274ae93e6. Fixes #18688
2017-04-11[REF] *: remove mixins from web.coreGéry Debongnie
It is better to directly import web.mixins
2016-12-30[MERGE] foward port of 10.0 up to revision ↵qdp-odoo
84a650e33aadb29661121410813e3de37a5ad3e9
2016-12-13[FIX] pos_restaurant: Allow more complex URL schemes for printersNils Hamerlinck
For example: https://abc.def:8080 It is already allowed for the printer in main point_of_sale module. Apply the same schemes in pos_restaurant. Closes #13769
2016-06-30[FIX] pos_restaurant: order of kitchen ticketNicolas Martinelli
When the kitchen ticket is printed, the order lines appear jumbled in comparison to what is displayed on the PoS interface. This is an issue since the kitchen cannot link main and side dishes for a given guest. For example, the following order: - Steak - Fries - Salmon - Pasta - Chicken - Salad On the kitchen ticket, this could appear as: - Salmon - Salad - Chicken - Steak - Fries - Pasta The order actually depends on the product id. The fix is to use the order line id instead of the product id in the resume dictionary. Although a dictionary is an unordered collection, most browsers keep the dictionary ordered. For example: ``` var a = {"18": "18", "1": "1", "21": "21", "14": "14"}; for(var i in a) { console.log(i) }; 1 14 18 21 ``` opw-680796
2015-05-04[IMP] pos_restaurant: better feedback for skipped orderlines (kitchen printing)Frédéric van der Essen
2015-03-18[IMP] web+addons: improvement to module systemGéry Debongnie
The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions.
2015-03-18[REF] pos_X: update to the new module systemGéry Debongnie
2015-02-02[IMP] pos_restaurant: skip loading the kitchen printing skipping when ↵Frédéric van der Essen
skipping loading printers
2015-02-02[IMP] pos_restaurant: allow temporarily skip some order lines when kitchen ↵Frédéric van der Essen
printing
2015-02-02[IMP] point_of_sale, pos_restaurant: Table seatsFrédéric van der Essen
2014-12-31[IMP] pos_restaurant: do not pollute global namespace with file loading ↵Frédéric van der Essen
functions
2014-12-31[WIP] point_of_sale, pos_restaurant: continued refactorFrédéric van der Essen
- this time it's the restaurant module that has been refactored - the point of sale extensions points have been reviewed to be more constistent and allow conditional extensions. - the chrome subwidgets are instanciated before screens, so that screens can manipulate them if needed.
2014-12-15[FIX] pos_restaurant: fix bad forward porting mergeFrédéric van der Essen
2014-11-26[FIX] pos_restaurant: remove console.logFrederic van der Essen
2014-11-26[IMP] pos_restaurant: improve the kitchen receipts based on customer ↵Frederic van der Essen
feedback : Put the quantities ont the left, Add the the time, and make the table name more legible
2014-11-26[IMP] point_of_sale, pos_*: unpaid orders are saved in localstorage and ↵Frederic van der Essen
persist between reloads Conflicts: addons/point_of_sale/static/src/js/models.js addons/point_of_sale/static/src/js/screens.js addons/pos_restaurant/static/src/js/multiprint.js addons/pos_restaurant/static/src/js/notes.js Conflicts: addons/point_of_sale/static/src/js/models.js addons/point_of_sale/static/src/js/screens.js addons/point_of_sale/static/src/xml/pos.xml
2014-11-25[IMP] pos_restaurant: add table / floor info to kitchen receiptsFrederic van der Essen
2014-10-08[FIX] pos_restaurant: Issue 614981: product renaming from name to ↵Frederic van der Essen
display_name was not done in the pos_restaurant module, resulting in empty product names in various places
2014-08-07[IMP] restaurant: renamed to pos_restaurantFrederic van der Essen