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,20 @@
from odoo import models
class AccountMove(models.Model):
_name = 'account.move'
_inherit = ['account.move', 'rsbu.posting.mixin']
def action_post(self):
res = super().action_post()
for move in self.filtered(lambda m: m.state == 'posted'):
move._rsbu_generate()
return res
def button_draft(self):
self._rsbu_remove()
return super().button_draft()
def button_cancel(self):
self._rsbu_remove()
return super().button_cancel()