Commit Graph
1311 Commits
Author SHA1 Message Date
Cédric Krier 39bcde5357 Use a separate cursor in loop to set translation
cursor_dict returns an iterator that consumes the cursor. This means the cursor
can not be used before the iteration is stopped. So we need to use another
cursor to make the update queries.
2016-03-17 17:14:53 +01:00
Cédric Krier 6b2f90e0f5 Sequence number next has no value for type different of incremental
issue5329
review17931002
2016-03-16 22:03:41 +01:00
Sergi Almacellas Abellana 4282f9e48f Use cursor from connection instead of transaction on notes
Since changeset 9b2e0aac2d9c
issue5405
review20081002
2016-03-16 13:02:31 +01:00
Cédric Krier 33d8f038d7 Add workflow graph on ir.model
issue5292
review15961002
2016-03-15 18:59:11 +01:00
Cédric Krier ad60794d73 Add context model on ir.action.act_window
issue5220
review20621002
2016-03-15 17:45:07 +01:00
Cédric Krier 4d58b3a720 Don't remove from context the format of Binary fields
The getter of the Binary field could be called many times in the same
transaction, so popping out the format from the context create a side effect
that changes the requested format.

issue3774
review19981002
2016-03-05 17:26:27 +01:00
Nicolas Évrard 2fef479575 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Nicolas Évrard 356fd6e9e7 Open view and icon files in binary mode
Since the support of python3 has been added file_open will return unicode
object when read in normal mode but icon files has to be considered as bytes
and lxml.etree.fromstring expect also bytes when there is an encoding
declaration (and not unicode).

issue5354
review17081002
2016-02-29 13:03:57 +01:00
Cédric Krier 91b09d297d Cache must be cleared on each Cron.run
issue5332
review21711002
2016-02-22 23:17:19 +01:00
Raimon Esteve 92f9374a21 Prevent deleting translations that are not updated
issue5310
review21661002
2016-02-08 18:08:19 +01:00
Cédric Krier 29129855ec Add support for Python 3
issue3211
review7311002
2016-02-07 16:46:16 +01:00
Cédric Krier 1ae75711a8 Add Note on resources
issue4669
review12061002
2016-02-02 19:14:35 +01:00
Cédric Krier fa0774cd1e Add more details on invalid XML error
It is useful when the error happens during the execution of the tests.

issue5257
review17761002
2016-01-21 10:40:30 +01:00
Cédric Krier 2f2e95e09f Drop also foreign key constraint of old field column of ir.rule
The foreign key must be dropped otherwise changes in the ir.model.field table
can fail because of the foreign key constraint.
The migration should always remove all unused constraints.

issue5241
review17741002
2016-01-21 10:27:22 +01:00
Nicolas Évrard 97700f8629 Do not set _datetime when instanciating the user in record rules
Setting _datetime would allow to read historized values and it could lead to
past privilege escalation

issue5216
review21581002
2016-01-14 14:10:43 +01:00
Cédric Krier cde3170700 Add button on cron to run once
issue5186
review22661002
2015-12-31 13:45:59 +01:00
Cédric Krier e09cc7780b Recursively get the type of views
View can inherit inheriting view if the model is different, so the validation
must retrieve recursively the RNG type.

issue5153
review15841002
2015-12-13 14:53:22 +01:00
Karla Stenger 551b83e964 Improve message of resource_name of ir.attachment
issue5075
review20511002
2015-11-17 15:11:03 -03:00
Cédric Krier 9a58954703 Add view_ids on tree view
issue5052
review24511002
2015-11-10 12:55:06 +01:00
Cédric Krier bdc59e96b0 Remove unused form attributes sum, key and color
issue5053
review17601002
2015-11-10 12:48:47 +01:00
Cédric Krier b042754afb Missing depends ['inherit'] in "ir.ui.view"."type" 2015-11-05 23:33:38 +01:00
Cédric Krier c140a134bb Enforce type of inheriting view
issue5036
review18711002
2015-11-05 23:07:53 +01:00
Cédric Krier edf80492d9 Update translations 2015-10-31 11:01:24 +01:00
Cédric Krier 3a02e1d54e Don't import obsolete translations
issue5055
review23561003
2015-10-21 18:20:57 +02:00
Cédric Krier 5ced670050 Correctly handle all empty value of menu action
Empty action for the reference field can be None or an negative id.

issue4915
review22511002
2015-10-10 17:46:14 +02:00
Raimon Esteve 24c499737e Remove trailing style_content attribute
changeset 45e423bd93fe has not completely removed all references to
style_content.

issue5003
review24441002
2015-10-04 22:56:53 +02:00
Cédric Krier d71ea868b2 Remove '_' in button string
issue5012
review24441004
2015-10-04 19:46:58 +02:00
Cédric Krier 87f9fbea6e Add test for all field methods
The test check if all defined field methods are linked to an existing field.

issue4991
review23441002
2015-10-01 22:37:13 +02:00
Cédric Krier c7829b15f7 Sync model data with only the filesystem values
It must not update the previous values as some field could have been removed.
Also there is no problem with module override because this button is called
during normal run and not the update module process, so the filesystem value
contains all the overridden values.

issue4992
review22451002
2015-10-01 17:09:14 +02:00
Cédric Krier 5b18894602 Add newline before email
Since changeset 45e423bd93fe and the removal of style, the email label and
field are no more aligned.
2015-09-24 15:50:06 +02:00
Cédric Krier a9c760139a Rename ActionMixin default_action into _default_action
ActionMixin._default_action is not a real default field method, so it must be
renamed to prevent Model.default_get to use it by mistake.

issue4979
review22431002
2015-09-22 22:55:54 +02:00
Cédric Krier c18ec6ba74 Add support for float and integer on Property fields
issue4942
review18531002
2015-09-14 10:37:38 +02:00
Cédric Krier 8299e1c133 Validate XML generated by ModelView.fields_view_get
- 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
2015-09-04 12:04:07 +02:00
Cédric Krier 14d5de6ac9 Add Hungarian
issue4874
review19321002
2015-09-02 13:49:26 +02:00
Cédric Krier 9765d8456a Use PYSONDecoder to validate Trigger.condition
Replace Python by PYSON in help and error message about Trigger.condition

issue4940
review24311002
2015-09-01 11:38:19 +02: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 b19e93e3a9 Remove style on Report
issue4904
review18481002
2015-08-21 18:03:44 +02:00
Cédric Krier 2f4bf93817 Remove boolean expression in order
issue4852
review15541002
2015-07-13 23:56:52 +02:00
Cédric Krier f455a9b6ed Add Italian
issue4840
review18331003
2015-07-09 15:41:53 +02:00
Cédric Krier 46e27a8f3e Add Spanish Mexico
issue4813
review12221002
2015-06-22 22:19:01 +02:00
Cédric Krier a51ac59a93 Add Portuguese (Brazil)
issue4125
review8181002
2015-06-22 22:09:20 +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 318b8cac65 Use explicite comparison to Boolean in SQL queries
Not every database supports boolean expression.

issue4810
review17291002
2015-06-15 01:20:25 +02:00
Cédric Krier 5478e5463f Don't use subquery to enforce record rule
Rule.domain_get returns now only a domain and Rule.query_get returns the query
which domain_get used to.

issue4800
review8151002
2015-06-15 01:14:47 +02:00
Cédric Krier 341e63f369 Use new table instance for post super call migration of View
The definition of the table must be refreshed to avoid removing twice the
'NOT NULL'.

issue4809
review7251002
2015-06-14 18:40:47 +02:00
Cédric Krier ea605881f2 Fix typo in migration minimum_time_delay of trigger
issue4778
review13191002
2015-05-31 10:03:59 +02:00
Cédric Krier 52ff97b165 Rename ir.module.module* into ir.module*
issue4764
review7171002
2015-05-28 21:02:01 +02:00
Cédric Krier 12d5f1b829 Clean translations 2015-04-20 11:50:55 +02:00
Cédric Krier 774d1e78b0 Update fr_FR
review11191002
2015-04-18 11:45:41 +02:00