[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user