We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f926e09 commit 5c6eda5Copy full SHA for 5c6eda5
1 file changed
l10n_it_riba_oca/models/account.py
@@ -456,11 +456,19 @@ def reconcile(self):
456
return res
457
458
def action_riba_issue(self):
459
+ for line in self:
460
+ if not line.move_id.riba_partner_bank_id.active:
461
+ raise UserError(
462
+ self.env._(
463
+ "Non è possibile emettere una riba legata ad un IBAN "
464
+ "archiviato; riga: %s , contatto: %s"
465
+ )
466
+ % (line.name, line.partner_id.name)
467
468
ctx = dict(self.env.context)
469
ctx.pop("active_id", None)
470
ctx["active_ids"] = self.ids
471
ctx["active_model"] = "account.move.line"
-
472
return {
473
"type": "ir.actions.act_window",
474
"name": "Issue RiBa",
0 commit comments