mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-23 14:02:00 +02:00
Initial commit: Accounting packages
This commit is contained in:
commit
4ef34c2317
2661 changed files with 1709616 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
from . import account_automatic_entry_wizard
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue