Auditrtail should work as expected for subordinate objects in a view, not just the main object of the view

Registered by Erik Myllymaki

I first posted this here as Bug #304009.

I still think that this is a bug and not a feature request, but my Bug report was set to *Won't fix* so short of filing the same bug report again this is the best course of action.
To reproduce, download and install:

openserp-server-5.0.1-0
openerp-web-5.0.1-0.

Make a new database.

Activate the audittrail module.

A default rule "Audit on Partners" is already created for you - subscribe to it.

Make a similar rule called "Audit on Addresses" using the object partner.address. Subscribe to it as well.

Go to the "Main Menu -> Partner -> Partners" form. Make a change to a partner field (not a partner.address field)- the "CODE" field maybe and check the logs. The change will be logged.

Now go to the "Main Menu -> Partner -> Partner Addresses". So the view you are looking at has only fields from the partner.address object in it. Make a change to the fax number. Now check the Audtitrail logs and there will be a record of the fax number change.

Now go back to "Main Menu -> Partner" form, where we will see fields from both the partner and partner.address objects in one view. Make another change to the fax number here.

Go to the Audittrail menu and view the logs.*

There will be no entry at all for Address, but there will now be two for partner. the second will be the same as the first.

The change to the fax field is not logged.

When looking at any view, a change to any field that you can see should be logged (if you have setup a log rule for the object that the field is in of course). I think that this is what most users would expected as default behaviour.

NOTE: I have high hopes that the move to SQLAlchemy and temporal fields added to all objects would make this redundant...

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.