Commit Graph
26 Commits
Author SHA1 Message Date
Cédric Krier c587d74dc4 Refresh pool of other processes
When a process change the list of activated modules, the others must refresh
their pool. We do that by just stopping the pool for that database, the next
request will load the new pool.

issue8988
review302861002
2021-01-20 00:52:07 +01:00
Cédric Krier 28356c0b54 Do not reuse browse list of modules once some have been deleted
The browse list keep a reference to the deleted modules, so a read error
may be raised when accessing an attribute of any record of the list.

issue9567
review318151002
2020-09-09 23:36:33 +02:00
Cédric Krier e11a23deb2 Rationalize import path
We use absolute path when imported module is from a different context.
And we remove unnecessary __all__ definition.

issue9466
review323591002
2020-07-21 14:38:36 +02:00
Cédric Krier d7ed5f91f5 Fix flake8 errors and warnings
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.

issue9082
review297061002
2020-03-01 12:33:54 +01:00
Nicolas Évrard 8fb13634ea Use direct access to backend classes
issue8836
review258421002
2019-12-06 17:33:47 +01:00
Cédric Krier 1738a4ec35 Add ir.message and use custom exceptions
issue3672
review35291002
2018-12-29 14:19:08 +01:00
Sergi Almacellas Abellana 633eb74e1f Remove required on icon, action domain and action view sequence
issue7889
review54451002
2018-11-29 13:19:47 +01:00
Cédric Krier 098ec6d737 Use material design icons
and redefine the default list of icons

issue474
review60291002
2018-08-19 19:59:58 +02:00
Cédric Krier 4d779f27eb Remove migration before 3.0
issue6470
review52421002
2018-08-09 20:43:52 +02:00
Cédric Krier 7a2ce7905a Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier d2a461390a Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier 7408bb8090 Simplify the creation of dependencies graph
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
2018-06-11 23:22:35 +02:00
Sergi Almacellas Abellana 6d39f13489 Add migration to register buttons on ir module
changeset 83757dc87808 moved the buttons from res to ir module but it missed
the migration of the model data to allow updates from previous databases

issue7186
review38031003
2018-03-02 14:21:17 +01:00
Sergi Almacellas Abellana 54f70e2971 Add depends on Button
issue6919
review40811002
2018-02-19 11:35:37 +01:00
Cédric Krier 6b3551c834 Ensure rec_name is a char, text type
Model.default_get with 'default_rec_name' context relies on the fact that
rec_name is a string base field.

issue6630
review36501002
2017-07-26 23:43:00 +02:00
Sergi Almacellas Abellana ae5fcfe03b Delete missing modules not activated when updating module list
issue6472
review42271002
2017-06-13 09:55:44 +02:00
Sergi Almacellas Abellana 19cfdd125e Mark modules as to remove when deactivating them
Changeset9bb9fe4cd312 modified the behaviour to mark them as not activated but
they should be marked as to remove so their data is correctly removed with the
install/upgrade wizard.

issue6019
review31691002
2016-11-09 10:36:39 +01:00
Karla Stenger 8b2009c287 Fix missleading error message deactivate_dep
issue6021
review32771002
2016-11-08 16:23:29 -03:00
Nicolas Évrard d5e24102f3 Fix missing renaming of install to activate
issue1456
review28941002
2016-10-21 12:44:57 +02:00
Nicolas Évrard ccbb43cb1d Use activate instead of install for module activation
issue1456
review28931002
2016-10-20 12:51:56 +02:00
Cédric Krier 2e19c1b949 Use tryton-ok icon for OK button
issue5429
2016-04-01 10:28:34 +02:00
Nicolas Évrard 2fef479575 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Cédric Krier b54afe3892 progressbar needs now float between 0 and 1
issue4929
review18511002
2015-08-28 10:54:50 +02:00
Cédric Krier 7a223d3b5e Remove colors attribute on tree view
issue4861
review16551002
2015-08-22 09:00:14 +02:00
Cédric Krier 44dc331ced Use Constraint instance in ModelSQL._sql_constraints
issue4814
review15491002
2015-06-22 16:57:06 +02:00
Cédric Krier 52ff97b165 Rename ir.module.module* into ir.module*
issue4764
review7171002
2015-05-28 21:02:01 +02:00