Cédric Krier
a6ba7caead
Enforce empty value for input and output production on stock move with id
...
The domain for Many2One is based on the target not the field value.
Closes #13721
2024-12-01 18:38:35 +01:00
Cédric Krier
1a835acf6d
Do not convert invoiced quantity if sale has not unit when computing credit amount
...
Closes #13715
2024-11-29 14:12:01 +01:00
Cédric Krier
89f5385b70
Ensure current record is None after removing record from the group
...
The removal can trigger __select_changed on the list view which may set the
first record of the selection as the current record which may be the deleted
record.
This prevents the display triggered by record_modified to set the current
record in the selection as it has been removed from the group.
Closes #13712
2024-11-29 12:59:50 +01:00
Cédric Krier
1a842ade94
Return a dictionary when calling default_get and set a default empty value
...
18acfa54fa2e relies on having always a dictionary.
Closes #13690
2024-11-28 15:00:55 +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
Nicolas Évrard
ffeeb1cdfe
Parse child of group tags at the end
...
This allows to preserve the order of the state widgets in the form which is
important when evaluating the emptiness of a group
Closes #13622
2024-11-30 10:24:52 +01:00
Cédric Krier
e0eb7390ed
Add missing migration for column rename of ir.model and ir.model.field
2024-11-24 01:17:41 +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
7948557d03
Clear view type of price list line context
...
68816ce94559 moves the definition of the context view to product_price_list
module and convert the existing view to inherit it. But inheriting view must
not have a type.
2024-11-24 14:15:25 +01:00
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