Commit Graph
100 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
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
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
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
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
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
Cédric Krier b58bb45544 Remove unnecessary invoice transition from cancelled to posted
cbb381841768 added it but it is not necessary because process use _post method
to set back the invoice to posted.

Closes #13619
2024-10-29 17:09:59 +01:00
Cédric Krier 7fafdf6af8 Set planned date of moves for all productions at once
Closes #8873
2024-10-23 19:30:17 +02:00
Cédric Krier a3568f6bb0 Do not update planned date of production moves if it is not needed 2024-10-23 19:34:26 +02:00
Cédric Krier 8f570007f0 Set planned date when creating production moves 2024-10-23 19:27:28 +02:00
Cédric Krier ab23b19d4e Round work total with currency digits in get_total
This allows to extend the computation methods without rounding too early.
2024-10-14 18:50:59 +02:00
Cédric Krier 315064677a Extract timesheet cost computation from _get_cost
This allows customization to use different composition of the costs.
2024-10-14 18:39:58 +02:00
Cédric Krier 53c042971b Group locations under the first requested location when computing stock quantities
This reduces the number of unnecessary intermediary results.

Closes #8594
2024-10-22 15:04:52 +02:00
Cédric Krier 31d53ba7a5 Reduce access to dictionary keys when computing stock quantities
#8594
2024-10-22 14:59:18 +02:00
Cédric Krier 462853ef3d Do not store period cache for empty quantity
This prevents to create a record for product that are no longer in the stock.

Closes #8151
2024-10-22 13:44:41 +02:00
Cédric Krier b86d70c701 Use the party currency added by account module for credit limit
Closes #13610
2024-10-20 21:19:39 +02:00
Cédric Krier 4aa300a3e4 Search for implicit locations of type storage when generating internal shipment
The provisioning and overflow locations are only meaningful on storage locations.
2024-10-06 12:38:20 +02:00
Cédric Krier fbbad830a2 Do not search for late moves when supplying stock if warning are skipped
For example the cron job skips the warnings so we safe some resources by not
searching for late moves.
2024-10-06 12:37:11 +02:00
Cédric Krier fb813f5abc Set and unset consignment origin without changing the state of the move
When changing the state of the move, the workflow transition of the decorated
function may filter out the move because the transition does not exist for the
new state.

Closes #13623
2024-10-24 00:52:27 +02:00
Cédric Krier e1a5a457f3 Extend searcher for assignation required from supplier consignment
Closes #8893
2024-10-23 21:15:33 +02:00
Cédric Krier d194910b72 Do not ask question on warning message about closed period
The client already ask a generic question to keep proceeding.

Closes #8806
2024-10-23 19:12:31 +02:00
Cédric Krier d7c8fae637 Do not allow to add product or unit with amendment if there was no unit
Invoice lines may already exist with incompatible unit which will fail to
compute invoiced quantity.
2024-10-27 19:43:15 +01:00
Cédric Krier 0e0f5f0ec6 Do not convert invoiced quantity if sale or purchase has not unit
Closes #13593
2024-10-27 19:41:19 +01:00
Cédric Krier 9d12fbf307 Take the first item of single value only with 'in' operator
Closes #13403
2024-10-28 00:39:53 +01:00
Cédric Krier 148135ddd2 Compare purchase requests having product and purchase line
Closes #13624
2024-10-28 00:19:53 +01:00
Cédric Krier e54257bf7c Set payment term ratio and divisor to None when type is not percentage 2024-10-27 20:04:09 +01:00
Cédric Krier bdabde97c6 Forbid to set ratio and divisor to zero for percentage payment term
Closes #13615
2024-10-27 20:03:24 +01:00
Cédric Krier ab3fecb282 Increase version number 2024-11-04 18:51:20 +01:00
Cédric Krier 18280c96af Add tag 7.4.0 2024-11-04 18:23:54 +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 43790f90dc Do not add field in optional menu if it is excluded
Closes #13618
2024-10-22 19:47:27 +02:00
Cédric Krier 2a7c3dc2a2 Load sequence field value of previous record before setting sequence
Closes #13604
2024-10-15 14:50:08 +02:00
Cédric Krier 015c68f2c6 Update translations 2024-11-02 16:10:36 +01:00
Cédric Krier cb1dbd007a Update account name and code to universal chart of account in winbooks export test 2024-11-02 09:10:17 +01:00
Cédric Krier 2612aced12 Fix missing target field in operand of domain 2024-11-01 09:00:07 +01:00
Cédric Krier e61143c7ec Use type and closed to filter account on analytic rule instead of view type
The view type has been removed since 6b76c4de4813.

Closes #13641
2024-11-01 08:59:13 +01:00
Cédric Krier e5c4b1b1c2 Use default email policy to parse raw email
The default policy uses the EmailMessage class instead of the Message class
from the compat32 policy.
The EmailMessage decodes automatically the header values.

Closes #13607
2024-10-19 16:24:29 +02:00
Cédric Krier 1c40ca075e Allow passing the output directory of check scripts as argument
Such that the script can be used to regenerate the files in the repository if
the root directory is passed.
2024-10-31 09:15:23 +01:00
Cédric Krier 8e5b459d76 Add French translation of universal chart of account 2024-10-30 22:55:00 +01:00
Cédric Krier 83037ea151 Check in CI other modules that extend universal chart of accounts 2024-10-30 22:24:51 +01:00
Cédric Krier ae26cabdb0 Standardize and minimize output of XLST
This prevent to regenerate existing versions because a new version is added.
2024-10-30 19:23:06 +01:00
Cédric Krier 015f454609 Add CI check for chart of accounts 2024-10-30 19:02:22 +01:00
Cédric Krier a79563f514 Add XSL filter on record with chart attribute for account SYSCOHADA 2024-10-30 19:02:00 +01:00
Cédric Krier e5658ccf92 Fix missing target field in operand of domain 2024-10-30 11:24:15 +01:00
Cédric Krier 1fdda8bdb2 Fix missing target field in operand of domain 2024-10-29 19:56:58 +01:00
Cédric Krier ce7be2e628 Do not try to paste empty clipboard as row
Closes #13613
2024-10-22 01:41:28 +02:00
Cédric Krier e1aa6a9642 Support widget with search_remote when pasting rows
Since 4db597e5b08c the widget value is not set automatically if there is only
one result.

Closes #13612
2024-10-22 01:39:29 +02:00
Cédric Krier ec70ef4203 Save each valid record pasted
Closes #3312
2024-10-22 01:18:57 +02:00
Cédric Krier ec33e1c3bf Test autocomplete of postal code and city on address 2024-10-19 23:49:41 +02:00
Cédric Krier 4fa6d9093d Do not autocomplete postal code nor city with empty value
None value prevents to sort the result and empty value does not add information.

Closes #13482
2024-10-19 23:48:53 +02:00
Cédric Krier aec4eae3f5 Replace forbidden char of document incoming name by space
When creating document incoming from email, the name value must be sanitized as
there is no control on the data.

Closes #13608
2024-10-19 16:34:36 +02:00
Cédric Krier 48cf2814ea Use "No Subject" fallback when creating document incoming from email with empty subject
Closes #13606
2024-10-19 15:25:33 +02:00
Cédric Krier afb909aa41 Fix missing target field in operand of domain 2024-10-28 21:23:57 +01:00
Cédric Krier 8ec4d98510 Update documentation of account cash rounding 2024-07-24 11:59:27 +02:00
Cédric Krier 7c3f4a85ee Update documentation of Spanish account 2024-07-29 17:00:28 +02:00
Cédric Krier 959e9bafae Update documentation of account payment Stripe 2024-10-28 14:40:37 +00:00
Cédric Krier c91260c175 Do not check link for www.facebook.com/business
It returns 400 when not logged.
2024-10-28 09:01:18 +01:00
Cédric Krier 2cb4ff88e0 Do not check link for www.sede.fnmt.gob.es
The SSL certificate can not be verified.
2024-10-28 08:59:24 +01:00
Cédric Krier dc0f0945ac Update Shopify webhooks link 2024-10-28 08:45:52 +01:00
Cédric Krier 5979e496de Do not check link for help.shopify.com
Cloudflare returns a 403 status before redirecting.
2024-10-28 08:45:28 +01:00
Cédric Krier 3217b224a4 Update documentation of account statement OFX 2024-10-18 00:01:52 +02:00
Cédric KrierandDavid Harper cfebb57220 Update documentation of account stock Anglo-Saxon
Co-authored-by: David Harper <dave@libateq.org>
2024-08-15 09:47:43 +02:00