The client uses the id of the view received by fields_view_get to construct
the URL so it must be the one requested to ensure to have the same view.
issue7988
review275081002
- remove invalid escape sequence
- use read_file instead of read_fp
- use importlib instead of imp and __import__
- use callable instead of instance of collections.Callable
- fix silent file closing
- replace SafeConfigParser by ConfigParser
- replace decodestring by decodebytes
- replace encodestring by encodebytes
issue7666
issue7390
review53361004
There is no need to create the graph step by step with only dependencies
already registered as far as the depth computation is propagated to all the
children.
Instead of searching level by level the nodes to iterate, it is faster to use
the sort of Python.
create_graph does not need to return its internal states but only the graph.
The ir.module activate and update method does not need to check for missing
dependencies because it is already checked at startup.
issue7466
review45211002
An option is added on RPC definition to enforce uniqueness of records
instantiated. The key methods ModeView.button and Workflow.transition have an
assert to detect error in development code.
issue6184
review36411002
This allows to have the 'rec_name' set for xxx2One and Reference field but we
need to ensure that even the initial values are returned because the instance
does not come from the client.
issue6579
review40471002
The __rpc__ attribute is currently filled by method in ModelView. Allowing
fields to define themselves what endpoints should be remotely callable make
this process more flexible.
issue4044
review30991002
The button_change is similar to the on_change, they run under a read-only
transaction so there is no need to check the access right like it is done for
the button.
issue5983
review26841002
ModelView automatically adds missing RPC definition for selection function but
only for Selection or Reference field. It should also do the same for Function
field which mimic such fields.
issue5903
review30531002
This is done by calling first the getter method for the parent language for the
terms that are not yet cached. After existing translations are set for the
language. And finally the result is stored in the cache.
The synchronisation wizard remove also the translations that are identical to
their parent language.
The method load_module_graph adds all parent languages to be loaded for
derivation.
issue5443
review25581002
The colspan attribute is important to keep the layout of the view intact.
So we must keep it after clearing all other attributes.
issue5444
review21901002
A side effect of this change is that now the method parse only once the arch of
each view instead of dumping and parsing the intermediary result of
inheritance.
issue5189
review18831002
When id is given, there is no need to perform a search otherwise only root
views or inherited views from other model should be considered.
Instead of explicitly define orders, it is better for modularity to use the
default one defined on the view model.
issue2041
review21461002
- Add missing attributes to {form,tree}.rn{c,g}
- Add validatation to test_view
- Prevent fields_view_get to set attribute to the wrong view type
issue4944
review19421002
and remove deprecated usage of lxml.etree getchildren.
The cffi implemenation of lxml doesn't support to change the parent of element
while itering over it. It results of missing loop of some elements.
issue4408
review11741002
We convert all the fields that were storing python code into PYSON.
We add a pyson attribute on field tag to store PYSON value.
issue4416
review6971002