Initial commit: Accounting packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:47 +02:00
commit 4ef34c2317
2661 changed files with 1709616 additions and 0 deletions

View file

@ -0,0 +1 @@
from . import account_automatic_entry_wizard

View file

@ -0,0 +1,12 @@
from odoo import models
class AutomaticEntryWizard(models.TransientModel):
_inherit = 'account.automatic.entry.wizard'
def _get_move_line_dict_vals_change_period(self, aml, date):
res = super()._get_move_line_dict_vals_change_period(aml, date)
if aml.vehicle_id:
for move_line_data in res:
if move_line_data[2]['account_id'] == aml.account_id.id:
move_line_data[2]['vehicle_id'] = aml.vehicle_id.id
return res