Commit Graph
58910 Commits
Author SHA1 Message Date
Cédric Krier c8ab038585 Add missing migration of open lines button of product price list
68816ce94559 moves the button definition from product_price_list_dates module
to product_price_list but as product_price_list is updated first it can not
create the button because of the unique constraint.
2024-11-24 01:07:39 +01:00
Cédric Krier 2b8642b6ee Add manual migration to documentation 2024-11-24 00:35:36 +01:00
Cédric Krier 71e19b01d8 Create new context record with default value
Screen.new_ is returning already a promise that is resolved after the call to
default_get. This ensure that display is triggered after having set the default
value.

Closes #13697
2024-11-20 15:52:40 +01:00
Cédric Krier e5d7fae134 Remove new lines characters when comparing record name of Many2One and Reference
This avoid to trigger a reset of the field if the record name has such character.

Closes #13687
2024-11-15 15:20:28 +01:00
Cédric Krier 4b5fa06b60 Do not deactivate product in replacement wizard
If the product can be deactivated, it must be deactivated using the proper
method so all the operations like deleting staging and draft moves are
performed. Otherwise the stock moves for the deactivated product will stay.

Closes #13677
2024-11-13 13:19:25 +01:00
Cédric Krier 52de5320f6 Test if pre_validate is an empty object
Closes #13675
2024-11-13 11:22:21 +01:00
Cédric Krier f358b1fc1c Set default state when production moves from BOM
The visibility of some fields depend on the state so it is better to set it.
2024-11-13 11:14:35 +01:00
Cédric Krier 70e1b5bfad Fill unit price required when creating production moves from BOM
Since 23a3a9ed13d7 the unit price is reset to None if the unit price is not
required.
So the client must known that the unit price is required to keep the value.

Closes #13674
2024-11-13 11:10:05 +01:00
Cédric Krier 5965e02da3 Fix incompatible placeholders in tryton's translations 2024-11-07 21:44:36 +01:00
Cédric Krier 539513d74f Set a width to the nav-tabs to not be included in the min-content computation
When screen with tab domain is displayed in a board, the tab domain increase
the min-content which could overflow the tab content.

Closes #13665
2024-11-06 18:11:35 +01:00
Cédric Krier 1f42ffb932 Set grid template to container of board view
Closes #13663
2024-11-06 18:01:51 +01:00
Cédric Krier 7c6e54b364 Use ngettext for import/export message 2024-10-16 19:11:10 +02: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 ccd026c9c6 Compute maturity date of grouped account move lines per debit/credit
Closes #8876
2024-10-23 20:02:00 +02:00
Cédric Krier 21d30ebd42 Use defaultdict when computing grouping move lines 2024-10-23 19:54:03 +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
Sergi Almacellas Abellana c1e41fdfa2 Add final dot on dunning email help texts 2024-10-29 09:42:47 +01: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 b68ea11ed7 Remove unused dashboard cache 2024-11-06 17:57:56 +01:00
Cédric Krier 56afef04ec Clear view caches when dashboard fields of user are modified
Closes #13662
2024-11-06 17:57:35 +01:00
Cédric Krier beddddb6d8 Order tariff codes by sequence with null first
Closes #13655
2024-11-05 16:27:12 +01:00
Cédric Krier eb5ef7a443 Limit edition access on tariff codes of products to customs administrator
Closes #13656
2024-11-05 16:37:12 +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 aba15a2885 Call directly record modified on group when Screen removes records
This is the same as in sao.
2024-11-13 11:33:51 +01:00
Cédric Krier 30fd8b38d2 Set a new current record if current one is not in the selection
`__select_changed` should not change the current record if the record is
already in the selection.

Closes #13676
2024-11-13 11:33:06 +01:00
Xavi Hermoso 27b672660a Update purchase requisition state when purchase request state is updated
Closes #13599
2024-11-24 18:47:43 +00:00
Cédric Krier 244d20f71c Relink stock moves to drop shipment after amending sale lines
Closes #13647
2024-11-04 16:45:49 +01:00
Cédric Krier ba38191f27 Set payment method and source name as class method 2024-10-29 12:01:00 +01:00
Cédric Krier 3421c62fa8 Propagate JSON-RPC protocol errors which are not service unavailable
Since 347c504196a9 requests are retried when service is unavailable but other
protocol errors like unauthorized must be raised to be processed.

Closes #13683
2024-11-16 00:02:36 +01:00
Cédric Krier 29868a0e0f Create tab content of board before retrieving the view
If the view is already cached, the callback is executed directly so the content
must have been created.

Closes #13664
2024-11-06 18:04:58 +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
Cédric Krier fdb7b33d50 Returns no view type when next view type is unknown
Closes #13658
2024-11-06 13:24:46 +01:00
Adrià Tarroja Caubet 1a6a4ecb66 Add test scenario for inventory count with lot 2024-11-20 23:02:03 +01:00
Adrià Tarroja Caubet ed4221bc35 Rename uom to unit when computing lot quantity counted for inventory
Since 7129f417a22c uom field on inventory line has been renamed to unit.

Closes #13646
2024-11-20 23:00:34 +01:00
Cédric Krier efab20b746 Add missing depends to counterpart intrastat property
Since 6bd1cdd44b6d the counterpart property is used for lost and found move.

Closes #13634
2024-11-19 16:50:36 +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 a44d43f09b Update digits in project invoice test scenario
Since 7c7f60798d49, get_total is always rounding the value with the currency
digits.
2024-11-16 21:57:09 +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 8397a314be Replace Many2Many by One2Many to stock move on forecast line
Closes #9243
2024-10-24 01:44:34 +02:00