Skip to content
Snippets Groups Projects
Commit ee2ee1ee authored by Florent de Labarre's avatar Florent de Labarre Committed by oco-odoo
Browse files

[FIX] l10n_fr_pos_cert: hash doesn't appear in ticket during reprint


- Create a pos order, pay and valide
- Close Pos
- reopen pos
- search this order
- click print ticket

--> Issue the hash doesn't appear on the ticket

closes odoo/odoo#71217

X-original-commit: 40adcce221ab882d034b2f4ed2987a234ba434f5
Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
parent 72a929d3
Branches
Tags
No related merge requests found
......@@ -128,6 +128,10 @@ class pos_order(models.Model):
if order.company_id._is_accounting_unalterable():
raise UserError(_("According to French law, you cannot delete a point of sale order."))
def _export_for_ui(self, order):
res = super()._export_for_ui(order)
res['l10n_fr_hash'] = order.l10n_fr_hash
return res
class PosOrderLine(models.Model):
_inherit = "pos.order.line"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment