Merge lp:~therp-nl/therp-backports/server6.1-lp915975-related_x2m_writes_target_model_with_source_model_id into lp:therp-backports/server-6.1
Proposed by
Stefan Rijnhart (Opener)
Status: | Merged |
---|---|
Merged at revision: | 4292 |
Proposed branch: | lp:~therp-nl/therp-backports/server6.1-lp915975-related_x2m_writes_target_model_with_source_model_id |
Merge into: | lp:therp-backports/server-6.1 |
Diff against target: |
33 lines (+5/-14) 1 file modified
openerp/osv/fields.py (+5/-14) |
To merge this branch: | bzr merge lp:~therp-nl/therp-backports/server6.1-lp915975-related_x2m_writes_target_model_with_source_model_id |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Therp | Pending | ||
Review via email: mp+130675@code.launchpad.net |
Description of the change
Hi,
the related field's fnct_write attempts at writing the target model with the source model id if the target model's field value is a relational field and is currently empty.
As far as I could see the logic in this method was overly complicated and could not be fixed easily. In this branch I tried to simplify the code. This version at least fixes the issue.
Cheers,
Stefan.
To post a comment you must log in.