Dear,
in odoo 18 user can edit the log time of workorder but it doesn't edit the related journal entry in accounting app , any work around ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Dear,
in odoo 18 user can edit the log time of workorder but it doesn't edit the related journal entry in accounting app , any work around ?
Yes, in Odoo 18, if a user edits the log time of a work order, the related journal entry in the Accounting app does not automatically update
Implement an Automated Adjustment through Python Code
from odoo import models, api
class MrpWorkorder(models.Model):
_inherit = 'mrp.workorder'
def write(self, vals):
res = super().write(vals)
if 'duration' in vals:
self._update_related_account_moves()
return res
def _update_related_account_moves(self):
account_moves = self.env['account.move'].search([
('manufacturing_order_id', '=', self.production_id.id)
])
for move in account_moves:
pass
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
2
kwi 25
|
2181 | ||
|
3
lip 25
|
2299 | ||
|
2
lut 25
|
2880 | ||
|
4
maj 24
|
3725 | ||
|
1
kwi 24
|
2283 |