Cédric Krier
252d66d7d8
Ensure Float.get_client returns a string
...
otherwise 0 could be evaluated as False.
2015-10-06 15:33:17 +02:00
Cédric Krier
22ba269923
Remove default (16, 2) digits
...
trytond doesn't enforce any digits if it is None,
so the client must do the same.
issue4742
review22491003
2015-10-03 11:55:37 +02:00
Cédric Krier
c496bff4a6
Fix parsing empty string for Float and Numeric
...
For Javascript, Number('') results into 0 instead of NaN.
2015-10-02 19:39:32 +02:00
Cédric Krier
e9518bac6f
Fix typo True -> true
2015-10-02 12:29:36 +02:00
Cédric Krier
643959f9d6
Add Dict widget
...
review24411003
2015-09-25 18:00:31 +02:00
Cédric Krier
a59e017ce3
Correctly set xxx2many modified by on_change
...
set_on_change should not trigger any signal but it should register
the field as modified.
issue4968
review24431002
2015-09-24 22:52:03 +02:00
Cédric Krier
4f74bc89a5
Fix localize_domain to strip 4th element only for Reference field
...
The 4th element should only be removed is the localized field is a Reference
field otherwise it must be kept.
issue4975
review16621002
2015-09-22 22:54:41 +02:00
Cédric Krier
a487f69c6c
Fix wrong arguments in validation_domains with pre_validate
2015-09-06 21:17:19 +02:00
Cédric Krier
034dea5312
Check if field is loaded before adding its timestamp
...
issue4876
review20341002
2015-07-28 07:42:25 +02:00
Cédric Krier
ea52c00bdc
Fix jsonify of Decimal and ensure Decimal instance is always used
...
The string version of the Decimal must be used for json.
When Decimal instances are used in calulation with Number, the result is no
more a Decimal instance so it must be converted again.
review22341002
2015-07-26 16:12:51 +07:00
Cédric Krier
0ce7edc54d
Fix parent model comparison when eager loading
2015-07-17 21:44:07 +02:00
Cédric Krier
2f838171ec
Add force_reload on save and return reload promesse
2015-07-17 18:01:48 +02:00
Cédric Krier
0392294aa5
Remove colors on widgets
...
- Bold label of required fields
- Explicit error message for invalid record
issue4861
review21301002
2015-07-16 22:36:11 +02:00
Nicolas Évrard
bd5fc134cc
Only call autocomplete on in default_get if it depends on at least one field
2015-05-29 13:35:28 +02:00
Cédric Krier
8a110d9d2d
Fix validation of record of One2Many field
...
review16301002
2015-05-22 11:04:06 +02:00
Cédric Krier
0ad99276d0
Remove TODO about validate as it is implemented
2015-05-15 13:45:51 +02:00
Cédric Krier
ca9daa057c
Remove useless TODO in One2Many.set_client
...
Parent is managed in changed call.
2015-05-15 13:45:33 +02:00
Cédric Krier
7ff523950e
Remove TODO about signal management
...
sao doesn't uses signals but directly lookup for parents
2015-05-15 13:44:09 +02:00
Cédric Krier
3f6ff2ad03
Add readonly check in Field.changed
2015-05-15 13:15:33 +02:00
Cédric Krier
f6149f4483
Remove useless TODO in Field.set_client
...
Parent is managed in changed call.
2015-05-15 13:11:20 +02:00
Cédric Krier
9f4a88d18e
Add pre_validate
...
review15381002
2015-05-15 13:00:41 +02:00
Cédric Krier
5a8d38a905
Add autocompletion
...
review17261002
2015-05-07 11:21:29 +02:00
Cédric Krier
a79cdf675d
Force parent in default_get
2015-04-30 17:44:14 +02:00
Cédric Krier
dbea601a79
Delay setting O2M field on record
2015-04-30 16:27:15 +02:00
Cédric Krier
8951d99ade
Manage exception on Record and readonly state
2015-04-30 13:57:29 +02:00
Cédric Krier
0d6d6f2034
Implement sibling group load
2015-04-30 12:56:35 +02:00
Cédric Krier
a838eb4e5e
Wrong usage of Record.model_name instead of Record.model.name
2015-04-30 12:54:49 +02:00
Cédric Krier
e8e6fecc2d
Filter leaf domain of Reference fields
...
The domain of Reference fields must be filtered out for non-valid target
because the localization will remove the target part and thus generate an
invalid domain for the specific target.
issue4680
review11141003
2015-03-30 22:37:52 +02:00
Cédric Krier
e2e6a9c004
Save parent group when saving record
2015-03-27 18:24:19 +01:00
Cédric Krier
e290dace9e
Add missing parent validation on Group.changed
2015-03-27 17:49:50 +01:00
Cédric Krier
717ef2594c
Add missing assert on Model.delete_
2015-03-27 16:00:20 +01:00
Cédric Krier
03caf29438
Implement on_write
...
review14141002
2015-03-27 10:39:52 +01:00
Cédric Krier
c9a4b92bd8
Set default empty context when undefined
...
As the params will be duplicated with jQuery, it will skip the undefined keys
and so the empty context will be lost.
2015-03-26 19:38:45 +01:00
Cédric Krier
5be17f9612
Fix attachment count cache
2015-03-20 16:30:34 +01:00
Cédric Krier
c7d19df48d
Add timestamp to Model.delete
2015-03-20 13:56:37 +01:00
Cédric Krier
18e0800aa7
Clear record timestamp after save
...
Since changeset f63036a91c9f, the timestamp is sent also on button calls but if
the record is saved just before this generate an concurrency exception. Indeed
the _timestamp must be cleared just after the save (because the record is not
reloaded before the button call).
issue4644
review9151002
2015-03-18 11:14:58 +01:00
Cédric Krier
2c4b4a3152
Hide columns containing always the same value
...
The domain inversion is used on the screen domain combined with the tab domain
to find columns that has always the same value.
issue4552
review9141003
2015-03-18 11:10:29 +01:00
Cédric Krier
24cbf66e36
Skip attribute domain for validation of Reference field
...
issue4640
review8011002
2015-03-15 16:29:37 +01:00
Nicolas Évrard
52899110ee
Add autocompletion on M2O form widgets
...
review15051002
2015-03-13 16:45:47 +01:00
Nicolas Évrard
a9e67da04b
Implement _timestamp retrieval for records
...
review6931002
2015-03-13 16:13:21 +01:00
Cédric Krier
a258dcacab
No need to resolve promesse in One2Many.set_on_change
2015-03-09 15:00:14 +01:00
Cédric Krier
b98c18570d
Reference.get must always return a value
...
Return null if there is no value.
2015-03-06 13:58:15 +01:00
Cédric Krier
2499a31c06
Manage product attribute
...
issue4229
review13591002
2015-03-02 23:17:49 +01:00
Cédric Krier
a8aa4eaa92
Add TimeDelta field
...
And remove float_time widget.
issue4026
review10891002
2015-02-09 23:04:01 +01:00
Cédric Krier
0f80f7a5e2
Use bootstrap instead of jquery-ui
...
- use bower for dependencies
- use moment for date
- use bootstrap-datetimepicker
review11821002
2015-02-06 00:32:51 +01:00
Cédric Krier
1caba18930
Simplify date, time and datetime widgets
...
- Remove datetime widget in list view
- Allow to use widget attribute for date/time
issue4457
review10011002
2015-01-26 11:32:47 +01:00
Cédric Krier
d9db2d48d4
Allow domain inversion to set None to X2M field
...
When domain is like ('field', '=', None), the domain inversion set the value to
None.
issue4301
review13781002
2014-12-11 22:24:30 +01:00
Cédric Krier
feef9c0981
pre_validate must not set value and must always validate xxx2many records
...
issue4330
issue4331
review5751002
2014-11-19 21:25:24 +01:00
Cédric Krier
5632e326c3
stringify the value of selection to preserve types
...
review8681002
2014-10-29 00:18:48 +01:00
Cédric Krier
391db8ea36
Use get in Integer.get_client to get the right default value
...
issue4220
review8601002
2014-10-14 15:34:44 +02:00