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 ?
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
5
de febr. 26
|
5541 | |||
|
3
de jul. 25
|
5019 | |||
|
2
de febr. 25
|
5291 | |||
|
4
de nov. 25
|
6551 | |||
|
1
d’abr. 24
|
5008 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.