many2one related field doesn't update the database!!!

Bug #890564 reported by Purnendu Singh (OpenERP)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Wishlist
OpenERP's Framework R&D

Bug Description

hello,

To produce the bug follow these steps:

Suppose we have 2 different companies A, B:
1) Create "Fiscal year 2011" for company A with monthly periods.
     check that Company related to all periods is A
2) Now change the company on "Fiscal year 2011" from A to B.
      Check that all periods company id is also updated to B. (In GTK and WebClient as per expected behavior)

but when i am checking the database entry in account_period table the company id is not updated!!!
If i am updating any filed value on account.period object then and only then company id get updated.

Thanks and regards,
Purnendu Singh

affects: openobject-addons → openobject-server
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hi,

This is a wishlist rather than a bug, and it only concerns fields.related with store=True.
In cases where this is important, the model could contain a store trigger that depends on the target of the relation too.

The framework could perhaps do this automatically as you suggest, but I think in most cases it is only a nice-to-have.

Changed in openobject-server:
importance: Low → Wishlist
Revision history for this message
Alex Duan (duanyp91) wrote :

Has it been solved yet?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.