[FIX] l10n_fr_pos_cert: Remove useless "s" that is not a parameter of bank statement.

closes odoo/odoo#76749

X-original-commit: ef1fd7291dc066a39df7c0af9fd6971caeb8a600
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: Florian Gilbert <FlorianGilbert@users.noreply.github.com>
This commit is contained in:
Florian Gilbert (flg)
2021-09-18 03:10:44 +00:00
parent d40f4f592b
commit 25cd5705f6
@@ -11,7 +11,7 @@ class AccountBankStatement(models.Model):
@api.ondelete(at_uninstall=True)
def _unlink_except_created_by_pos(self):
for statement in self:
if not statement.company_id._is_accounting_unalterable() or not statement.s.journal_id.pos_payment_method_ids:
if not statement.company_id._is_accounting_unalterable() or not statement.journal_id.pos_payment_method_ids:
continue
if statement.state != 'open':
raise UserError(_('You cannot modify anything on a bank statement (name: %s) that was created by point of sale operations.') % statement.name)