Commit Graph
5399 Commits
Author SHA1 Message Date
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
Cédric Krier 015c68f2c6 Update translations 2024-11-02 16:10:36 +01:00
Cédric Krier 17fb714e38 Document that getter function is called with the record context 2024-08-17 17:48:12 +02:00
Cédric Krier c8caf77630 Document _transaction, _user and _context attributes of ModelStorage
They are private attributes to avoid collision with fields but they should be
indeed part of the public API.
2024-08-17 17:47:33 +02:00
Cédric Krier 556858d1a1 Remove documentation about target_search parameter on Many2One
a8f355306be5 removed the parameter but not the docstring documentation.
2024-08-19 12:53:53 +02:00
Cédric Krier ac96da85d6 Use ModelSQL.lock to lock table when validating SQL constraint
Since c8771e45b861 locking table must be performed at the start of the
transaction which is managed by the `Transaction.lock_table` method which is
used by `ModelSQL.lock` but not `Database.lock`.

Closes #13626
2024-10-24 15:06:00 +02:00
Cédric Krier 74bfb4af96 Do not force to lock table at the transaction start when updating module 2024-10-24 15:45:40 +02:00
Cédric Krier 5546f5d125 Use proper name for Hidden Recipients in email template help text 2024-10-19 09:39:34 +02:00
Cédric Krier 0721f62c20 Add docker installation options in the documentation 2024-10-15 13:26:28 +00:00
Cédric Krier f2e064272f Replace in comparison with equality in ModelStorage copy 2024-09-30 23:15:08 +02:00
Cédric Krier 8efee8823a Do not copy relational fields with filter
Closes #13549
2024-09-30 23:14:36 +02:00
Cédric Krier 6d0270e7d8 Do not enforce implicit NOT NULL on name field of a tree
The `not like` operator implicitly requires the field to be not null but
specific implementation of the named field may allow to have NULL values.

Closes #13592
2024-10-11 10:51:04 +02:00
Cédric Krier f9e13ddc3f Include NULL value for negative search on nested Many2One and Reference
This unify the search behavior on relational fields with NULL value started
with c14f51b77b30.

Closes #13585
2024-10-11 11:24:06 +02:00
Cédric Krier 22f6237085 Always return a string for status bar of user
Closes #13579
2024-10-09 20:10:13 +02:00
Cédric Krier 46e9405595 Do not add model name in record name of view without model
Closes #13578
2024-10-09 20:07:30 +02:00
Cédric Krier 071c98210d Do not compute sequence next number if the SQL sequence does not exist 2024-10-09 09:47:15 +02:00
Cédric Krier cff908ff80 Use Text field for icon content
The SVG format can have line break so the field must allow them.
2024-10-08 14:37:07 +02:00
Cédric Krier 799b8dde56 Validate Function fields when running tests 2024-10-08 14:36:13 +02:00
Cédric Krier 6868d72b86 Enforce the type of value for Function fields
Closes #13550
2024-09-30 19:13:01 +02:00
Cédric Krier f1ce119ad4 Document the attributes on the fields 2024-09-30 19:12:04 +02:00
Cédric Krier f64e38f799 Surround exclude expression with parenthesis
Closes #13576
2024-10-09 17:19:44 +02:00
Cédric Krier ca61f7cc7b Support range functions and operators in EXCLUDE constraint
Closes #7471
2024-10-10 00:34:53 +02:00
Nicolas Évrard 35fb76f754 Add tests on ir.model and ir.model.field write calls on translated fields 2024-09-25 00:12:46 +02:00
Nicolas Évrard be0e2e691a Update only the actual ir.model and ir.model.field translations
Closes #13546
2024-10-01 16:45:46 +02:00
Cédric Krier 032813a0b8 Support None as default value for xxx2Many fields
Closes #13588
2024-10-10 09:38:40 +02:00
Cédric Krier 29de47586c Test if all columns of SQL constraint are Column before testing their names
Closes #13587
2024-10-10 00:48:39 +02:00
Cédric Krier abb51c5cb3 Test all the SQL constraints name first before testing common column names
Closes #13586
2024-10-10 00:44:50 +02:00
Cédric Krier 530b55ac42 Add sparkline chart tools
Closes #13548
2024-09-29 12:36:21 +02:00
Cédric Krier d83bcc784c Add setup methods to activate_modules 2024-09-10 18:01:29 +02:00