Cédric Krier
4cbce5729e
Include the depends of the getter function when depending on a Function field
...
Since c47b3642f1a6, the getter of a Function field may be called if there is no
value set for it on the instance.
In the on_change context, this may set the missing fields to None if they were
not defined in the depends of the method called. In addition to compute a wrong
value, those fields are then returned as modified.
Closes #13735
2024-12-05 16:25:16 +01:00
Cédric Krier
1360ae6c5d
Do not use init values for new record without id to compute the changed values
...
When using new instance to fill a xxx2Many field, all the values must be
considered as changed and we should not expect any initial value.
Closes #13716
2024-11-30 12:56:41 +01:00
Cédric Krier
ce2bc3a3a0
Limit keyword action to ModelView
2024-11-16 18:42:42 +01:00
Cédric Krier
2e974388b9
Limit resource reference to subclass of ModelView and ModelStorage
...
Closes #13689
2024-11-16 18:42:17 +01:00
Cédric Krier
d661f3d8da
Allow filtering model names by subclasses
2024-11-16 18:41:25 +01:00
Cédric Krier
b8e124efaa
Better naming between session and wizard instance when testing wizard
2024-11-21 18:09:22 +01:00
Cédric Krier
838cee8307
Do not re-instantiate action report when printing workflow graph
2024-11-21 18:08:54 +01:00
Cédric Krier
3481debb43
Convert value to integer when setting reference value as string
2024-11-21 18:07:57 +01:00
Cédric Krier
f5a9f36823
Test _ids type when instantiate ModelStorage
2024-11-21 18:06:48 +01:00
Cédric Krier
6cff740d3c
Validate integer digits
...
Closes #12975
2024-10-20 18:22:26 +02:00
Cédric Krier
d85f0b4456
Add support for DATE_TRUNC from INTERVAL to SQLite backend
2024-12-15 20:55:42 +01:00
Cédric Krier
90ffa4ad8a
Fix DATE_TRUNC with date and time
...
Since 96bc08db1fd5, fromisoformat is used so the value may be a date or a time.
So not all the attributes are available for those types.
And SQL requires to always return a datetime.
2024-12-15 20:54:23 +01:00
Cédric Krier
c51e0157aa
Use fromisoformat to parse value in SQLite functions
2024-12-14 16:20:10 +01:00
Cédric Krier
40c5010b77
Import datetime as dt in SQLite database
2024-12-14 16:16:07 +01:00
Cédric Krier
81cd587477
Add support for EXTRACT from INTERVAL to SQLite backend
...
Closes #13305
2024-12-14 16:22:59 +01:00
Cédric Krier
e8f0704d0b
Do not check for integrity error the required fields with set method
...
Closes #13745
2024-12-11 11:02:07 +01:00
Cédric Krier
1c9682e7ae
Set default icon for board and list-form action window
2024-11-10 02:11:09 +01:00
Cédric Krier
e77e0c2349
Add icon for list-form
2024-11-10 02:10:28 +01:00
Cédric Krier
48e6a7374d
Use more explicit icons for form, list and tree
...
Closes #11391
2024-11-10 02:10:04 +01:00
Cédric Krier
25322bc0d1
Set label on form view as help text of record rules
2024-11-27 19:58:38 +01:00
Cédric Krier
fd903381db
Improve naming of the tested view
...
It is more useful to have the filename of the view if possible or the model
name and type.
2024-11-29 13:43:47 +01:00
Cédric Krier
e2ee8f5b13
Remove unused EMAIL_REFKEYS from action
...
Since 8288b688cfeb this global variable is no more used.
2024-12-05 16:27:17 +01:00
Cédric Krier
57ca116d24
Do not clear string field translations of model
...
Since de19952c097a the 'name' field has been renamed into 'string' also for the
translations.
2024-12-01 10:32:48 +01:00
Cédric Krier
cd0bcf8ff5
Document gettext and ngettext methods added to the report context
...
They were added by 9403850c8ead but without documentation.
2024-12-01 19:06:26 +01:00
Cédric Krier
26930ddda9
Add msg_gettext and msg_ngettext to Report context
2024-12-01 19:04:56 +01:00
Cédric Krier
e1121fd3e9
Do not quit the SMTP sever on 421 error code
...
smtplib is already closing the connection when such error code is received.
Closes #13710
2024-11-28 14:47:11 +01:00
Cédric Krier
27e589ccd7
Do not set empty To, Cc nor Bcc in email message
...
Since gh-102988, email.utils.getaddresses() return [('', '')] for invalid email
addresses which includes empty string if the header is set with an empty list.
Closes #13649
2024-11-18 08:44:57 +01:00
Cédric Krier
f93146919f
Drop constraints using cascade
...
This is needed when dropping a constraint used to enforce a foreign key for
example.
2024-11-20 11:17:15 +01:00
Cédric Krier
2b8642b6ee
Add manual migration to documentation
2024-11-24 00:35:36 +01:00
Cédric Krier
be2f522c05
Use plural for password length error message
2024-10-16 18:39:52 +02:00
Cédric Krier
ffcf5a5225
Support plural translation of messages
2024-10-16 19:57:43 +02:00
Cédric Krier
851d0b580a
Clear translation cache of message when translations of type model are changed
2024-10-16 17:27:16 +02:00
Cédric Krier
81d891bebf
Support plural translations in report
...
In addition to add support for ngettext to Genshi i18n Translator, gettext and
ngettext methods are added to the report context.
2024-10-16 11:38:07 +02:00
Cédric Krier
c9e059680e
Add plural source to translations
2024-10-16 18:40:14 +02:00
Cédric Krier
01e715bb05
Add plural to language
2024-10-16 22:46:26 +02:00
Cédric Krier
120e315bec
Set Decimal precision of default context from environment variable
...
This is placed in the trytond __init__.py because the default context must be
set prior to any start of thread. And thus it can only be set via environment.
Closes #13572
2024-10-08 16:34:37 +02:00
Charles Germain
17e4d6a6f2
Clarify the need to create the opportunity.py file in the tutorial
2024-11-25 09:02:15 +01:00
Cédric Krier
6e3817ba05
Add equivalent domain of SQL constraints
...
When possible we should also add a domain so the client can provide better
feedback to the user.
Closes #9432
2024-10-27 16:20:45 +01:00
Cédric Krier
622661350c
Do not get a new connection when retrying to lock table on transaction start
...
Closes #13661
2024-11-06 13:57:10 +01:00
Cédric Krier
1557210b95
Disable promotion on tinyMCE
...
Closes #13660
2024-11-06 13:30:40 +01:00
Cédric Krier
363cbd986d
Return the inherited view type for inheriting action window view
...
Closes #13659
2024-11-06 13:25:28 +01:00
Udo Spallek
8b252472c4
Replace usage of docstring of Model by __string__ attribute
...
Closes #8402
2024-11-19 10:09:52 +01:00
Cédric Krier
d99d001dfe
Get default value from name2translations when updating model translations
...
Closes #13669
2024-11-12 00:02:58 +01:00
Cédric Krier
77d2d29447
Rename ir.model.field 'field_description' into 'string'
2024-11-11 20:04:03 +01:00
Cédric Krier
7449eda49c
Rename ir.model 'model' field into 'name'
2024-11-16 21:17:55 +01:00
Udo Spallek
a89fc8bf1c
Rename ir.model 'name' field into 'string'
2024-11-16 21:18:38 +01:00
Cédric Krier
5d9be5e253
Accept object has type for Greater statements
...
If the PYSON statement has the type 'object', it can be a Date, DateTime or
TimeDelta which is allowed for comparison.
Closes #13645
2024-11-04 13:09:34 +01:00
Cédric Krier
ab3fecb282
Increase version number
2024-11-04 18:51:20 +01:00
Cédric Krier
dc470fe1f4
Prepare release 7.4.0
2024-11-04 18:23:40 +01:00
Cédric Krier
3c6a527b56
Reorder trytond documentation
2024-11-04 09:51:15 +01:00