Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
1
account_move_auto_post_ref/models/__init__.py
Normal file
1
account_move_auto_post_ref/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import account_move
|
||||
14
account_move_auto_post_ref/models/account_move.py
Normal file
14
account_move_auto_post_ref/models/account_move.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# Copyright 2024 Moduon Team S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)
|
||||
from odoo import models
|
||||
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = "account.move"
|
||||
|
||||
def _get_fields_to_copy_recurring_entries(self, values):
|
||||
"""Include customer ref in recurring entries."""
|
||||
values = super()._get_fields_to_copy_recurring_entries(values)
|
||||
if self.ref:
|
||||
values["ref"] = self.ref
|
||||
return values
|
||||
Reference in New Issue
Block a user