Trigger on store function field doesn't work in inherits object
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team |
Bug Description
Hi,
This is a quite complex one affecting last v6.0 :( Also to explain, I'll try...
Situation :
- Add a store field on account.
'aa_currency_id': fields.
- This will trigger any modifications done on the related analytic account or in the amount or unit_amount field of analytic lines. When the trigger is trigged, the value of aa_curency_id is re-computed by _get_account_
This works perfectly as expected, the trigger works. But then you install hr_timesheet module which inherits account.
You can find a working example in the c2c_multicost_base module of extra-addons for v 5.0, in v5.0 this works perfectly. Changing the hr.analytic.
I expect this to work also n v 6.0. A trigger put on an object A should be trigged also when an inherits object B change some values in the inherited object A.
Thanks to have a look, this sould be very important I think.
Regards,
Joël
Related branches
summary: |
- Trigger on store field doesn't work inherits object + Trigger on store function field doesn't work in inherits object |
Changed in openobject-server: | |
status: | Confirmed → In Progress |
Changed in openobject-server: | |
status: | In Progress → Confirmed |
tags: | added: nan |
Changed in openobject-server: | |
assignee: | OpenERP's Framework R&D (openerp-dev-framework) → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: |
added: maintenance removed: nan |
I just push the "analytic_ multicurrency" module that provide this store function field, you can easily try to reproduc this bug by installing it on your system. Available in the extra-addons branch of the trunk v6.0