Public release from ruodoo-project: 19.0 - 2026-11-01 22:52:25 UTC

This commit is contained in:
CI Publish Bot
2026-11-01 22:54:30 +00:00
commit 26250aa580
2492 changed files with 664277 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
from odoo import models
class AccountPayment(models.Model):
_name = 'account.payment'
_inherit = ['account.payment', 'rsbu.posting.mixin']
def action_post(self):
res = super().action_post()
# После проведения платёж переходит в in_process или paid.
for payment in self.filtered(lambda p: p.state in ('in_process', 'paid')):
payment._rsbu_generate()
return res
def action_draft(self):
self._rsbu_remove()
return super().action_draft()
def action_cancel(self):
self._rsbu_remove()
return super().action_cancel()