That's a very not fun bug, it turns out, leaving some info for whoever
comes next and tries to solve it:
* to open the contextual menu, the m2o needs to perform a `get` on ir.values
(for actions)
* therefore the m2o needs to build a context to send in the RPC request
* because the m2o has an @context set, it calls `_build_eval_context` on itself
(to get the values of the other form fields, as its @context may depend on
those — which it does in bank statement)
* this in turn aggregates the dataset's context and the values from the other
fields in the form
- the first part is the issue, the m2o is in an o2m, therefore its dataset is
a One2ManyDataset
- which builds a contexts from the o2m it comes from
- that o2m calls its own _build_eval_context
- which tries to get the field values for the whole form
+ and o2ms save themselves before yielding their value
+ which saves the line
** Changed in: openerp-web
Status: In Progress => Confirmed
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/903630
Title:
bank statement - click open icon leaves edit mode
Status in OpenERP Web:
Confirmed
Bug description:
clicking on the icon the drop down must open , instead it wrongly
behaves like the save button next to it
To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/903630/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp