Skip to content
Snippets Groups Projects
Commit f5f64536 authored by Florent de Labarre's avatar Florent de Labarre
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#71172

Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
parent 36a9e761
No related branches found
No related tags found
No related merge requests found
......@@ -127,6 +127,11 @@ class pos_order(models.Model):
if order.company_id._is_accounting_unalterable():
raise UserError(_("According to French law, you cannot delet a point of sale order."))
return super(pos_order, self).unlink()
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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment