Skip to content

Commit

Permalink
[FIX] l10n_fr_pos_cert: fields used for hash
Browse files Browse the repository at this point in the history
When the hash is generated for a pos order, it is computed based on some
fields, there was the field statement_ids that doesn't exist anymore,
and so we replaced it by payment_ids which is the new field.

closes odoo#36912

Signed-off-by: pimodoo <[email protected]>
  • Loading branch information
pimodoo committed Sep 16, 2019
1 parent bb55743 commit fd9875a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/l10n_fr_pos_cert/models/pos.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def open_frontend_cb(self):
return super(pos_session, self).open_frontend_cb()


ORDER_FIELDS = ['date_order', 'user_id', 'lines', 'statement_ids', 'pricelist_id', 'partner_id', 'session_id', 'pos_reference', 'sale_journal', 'fiscal_position_id']
ORDER_FIELDS = ['date_order', 'user_id', 'lines', 'payment_ids', 'pricelist_id', 'partner_id', 'session_id', 'pos_reference', 'sale_journal', 'fiscal_position_id']
LINE_FIELDS = ['notice', 'product_id', 'qty', 'price_unit', 'discount', 'tax_ids', 'tax_ids_after_fiscal_position']
ERR_MSG = _lt('According to the French law, you cannot modify a %s. Forbidden fields: %s.')

Expand Down

0 comments on commit fd9875a

Please sign in to comment.