Commit Graph
100 Commits
Author SHA1 Message Date
Cédric Krier 085ef4f9ac Add sale_rental_progress_invoice module
Closes #13211
2025-11-23 20:37:56 +01:00
Cédric Krier c39c64c1c8 Group sale invoices from rental 2024-06-05 14:48:53 +02:00
Cédric Krier e576fcacc9 Rename _get_invoice_purchase in _get_invoice on purchase 2024-02-21 15:07:52 +01:00
Cédric Krier 2bcb418688 Rename _get_invoice_sale in _get_invoice on sale 2024-02-21 15:07:05 +01:00
Cédric Krier a7908ffdec Add sale_rental module
Closes #13015
2025-11-23 19:20:17 +01:00
Cédric Krier f7b41a3a07 Set analytic account on closing move of asset also when it is an expense
Closes #14390
2025-11-25 16:02:52 +01:00
Cédric Krier 76cc0945e3 Add depends to parent account_category for on_change_gross_price
Since 101e1d87a261 product template has a One2Many field accounting_templates
which requires the new dependency.
2025-12-01 17:12:57 +01:00
Cédric Krier 998aa90a72 Set the language to party from the Shopify customer
Closes #14257
2025-12-01 16:52:59 +01:00
Cédric Krier bcd594fe74 Add logging for Shopify GraphQL queries and webhooks 2025-09-22 14:45:09 +02:00
Cédric Krier 23b4ec2aad Add admin URL to Shopify identifiers
Closes #14160 #14164
2025-08-14 14:31:32 +02:00
Cédric Krier 047d89886b Set compare-at price on Shopify using non-sale price
Closes #14155
2025-08-12 15:32:34 +02:00
Cédric Krier 03b82163ce Add support for product kit on Shopify
Closes #14129
2025-10-09 19:12:53 +02:00
Cédric Krier 567cae3c86 Add carrier selection for Shopify order
Closes #14102
2025-07-03 16:49:46 +02:00
Cédric Krier 807b593f1e Use GraphQL API instead of REST API of Shopify
The REST API has been deprecated.

Closes #13598
2025-12-01 16:46:23 +01:00
Cédric Krier 6360869d6c Add id as matching key for product image URL
This allows to generate an URL for a specific image.
2025-05-27 00:08:28 +02:00
Cédric Krier 3f7794b968 Replace picsum service by our own images in product image tests
Closes #14201
2025-08-28 10:51:26 +02:00
Cédric Krier 77a214385c Test Shopify module with extra dependencies 2025-06-30 17:01:31 +02:00
Cédric Krier 2f58b1be9a Add option to order products from web shop 2025-05-19 21:42:27 +02:00
Cédric Krier 1cfac84ebc Keep sale line removed from Shopify order
It is not allowed to delete a sale line if the sale state is not draft or
cancelled.

Closes #14376
2025-11-20 10:14:13 +01:00
Cédric Krier 2ce1adfc04 Do not prevent to process sale line without product and quantity from Shopify
When a line is removed on Shopify, the quantity of the sale line is set to 0 in
Tryton because Shopify refund the line.
So such line without product must not prevent to process the sale as they will
not generate any stock move nor invoice line.

Closes #14375
2025-11-20 10:10:27 +01:00
Cédric Krier d6fad7d10c Do not create contact mechanism for invalid email from Shopify
Closes #14368
2025-11-17 14:38:07 +01:00
Cédric Krier 72b7d9e922 Always fill contact of commercial invoice consignee for DPD shipping service 2025-11-30 08:45:34 +01:00
Cédric Krier dbb0abe49a Include origin name in stock move record name
Closes #14359
2025-11-14 09:05:02 +01:00
Cédric Krier 4d8a1cd837 Do not update key value of user application on write
Closes #14353
2025-11-06 11:34:07 +01:00
Cédric Krier 6a05c7597d Remove party name from address name for shipping services
If the party name of the address starts with the name of the party, we do not
need to repeat it as the shipping services have also a field to store the party
name.

Closes #14352
2025-11-08 09:53:01 +01:00
Cédric Krier 71ac33a2c9 Remove unused mailto function
It is no more used since 83287ed2d759
2025-11-20 22:07:43 +01:00
Cédric Krier 85920a9c3c Lock web shops when fetching order from Shopify
It is needed to avoid to fill the ir.error table with unique constraint error
on the web ID when the method is called in parallel by tasks posted from the
webhook.

Closes #14360
2025-11-13 15:23:47 +01:00
Cédric Krier fe44ee1a60 Remove outdated comment about lock when closing stock period
Since c8771e45b861 the lock is taken at the transaction start so the calculated
stock quantities are always correct.
2025-11-29 14:59:43 +01:00
Cédric Krier b0fe13a8e6 Add test scenario for stock period 2025-11-29 14:57:15 +01:00
Cédric Krier 461d3a159d Remove Purchase prefix to purchase request menu entry
This create a simpler title for the tab.
2025-11-18 00:05:02 +01:00
Cédric Krier 66da5bf18a Add support to domain parser to search on empty relation field
Closes #14106
2025-11-06 18:15:38 +01:00
Cédric Krier 4859bedaaf Convert max_tasks_per_child to None when the value is 0
The ProcessPoolExecutor supports only a positive integer or None.

Closes #14349
2025-11-05 14:38:52 +01:00
Cédric Krier 9b217fa50b Use the same label for the quality inspect wizard on production as on shipments 2025-11-03 08:25:12 +01:00
Cédric Krier 19667f95fc Add test to check replaced field of replace party wizard 2025-10-31 12:03:02 +01:00
Cédric Krier 6b2b66cbd4 Allow multiple products to be added to or removed from an accounting category
Closes #14326
2025-11-28 12:06:48 +01:00
Cédric Krier f03f4512d4 Set Belgian account 488 as deposit
Closes #14148
2025-08-06 18:26:09 +02:00
Cédric Krier 67190a2e83 Use the default digit values to calculate the width for float widget
Closes #14153
2025-08-11 18:06:38 +02:00
Cédric Krier 9a8492d928 Do not sum digits for widget width when some parts are unknown
Closes #14384
2025-11-27 01:14:59 +01:00
Cédric Krier 9504ccf748 Raise inbound email menu 2025-10-26 09:00:15 +01:00
Cédric Krier 0d677b4f74 Add an option to trytond-console to run a script file 2025-10-21 16:05:39 +02:00
Cédric Krier ac39a44d3b Remove outdated comment about converting Decimal into float for XML-RPC 2025-11-26 21:53:24 +01:00
Cédric Krier c92dd960a3 Save contact mechanisms of address also when only the order is changed by Shopify
Closes #14356
2025-11-11 12:50:36 +01:00
Cédric Krier 518e5f3f69 Store only immutable structure or make a shallow copy in MemoryCache
Closes #14347
2025-11-03 23:08:31 +01:00
Cédric Krier 1824d5600c Format date with contextual language when used as record name 2025-10-21 11:00:36 +02:00
Cédric Krier 823c7d5ff7 Allow a different gross price to be set for each variant
Closes #14299
2025-10-17 17:59:53 +02:00
Cédric Krier 6b3634b74e Add stock_shipping_point module 2025-11-22 10:45:44 +01:00
Cédric Krier 133deb56b7 Add warehouse to the list view of supplier return shipment 2025-10-16 01:14:15 +02:00
Cédric Krier 7a82d82ba9 Add domain to warehouse of internal shipment
This ensures that the computed value is correct.
2025-10-16 01:13:50 +02:00
Cédric Krier 3ade628745 Add destination warehouse to internal shipment 2025-10-16 01:12:51 +02:00
Cédric Krier f67a5f8db9 Add missing entry in documentation for stock shipment customs 2025-11-22 10:44:35 +01:00
Cédric Krier e138ff1286 Order the list of variants on the product
Closes #14285
2025-10-10 17:42:08 +02:00
Cédric Krier a5330ab1ff Add product volume and weight to price list formula
Closes #13926
2025-03-17 18:24:14 +01:00
Cédric Krier b7ee37bb0a Replace clean_days with log_size in the cron configuration
Closes #14319
2025-10-27 19:20:23 +01:00
Cédric Krier ff2c9f7bc3 Load sub-fields of xxx2Many only for lazy loading
The sub-fields are not needed for eager loading view like the tree because they
are rendered with only the number of records.

Closes #14305
2025-10-21 12:14:04 +02:00
Cédric Krier 6ebc55a14e Add missing depends on currency to the TaxableMixin._round_taxes method
Closes #14348
2025-11-04 10:28:04 +01:00
Cédric Krier 142bb40876 Use short phone format in test scenario
As phonenumbers is not a dependency for the tests, we must use a short format
to not exceed the 20 characters limit.
2025-11-21 22:09:44 +01:00
Cédric Krier 36e7d69b89 Add stock_shipment_customs as requirement for tests 2025-11-21 15:34:30 +01:00
Cédric Krier d089be91ba Remove duplicate changelog entry in DPD shipping 2025-11-21 15:14:08 +01:00
Cédric Krier 8a772ad678 Support DPD international shipping 2025-02-15 22:23:11 +01:00
Cédric Krier 39a79c70ef Support Sendcloud international shipping 2025-02-15 19:27:34 +01:00
Cédric Krier 791d649dde Support UPS international invoice form 2025-02-17 19:01:11 +01:00
Cédric Krier 0796f27fbd Add fields depends to shipping properties 2025-02-15 22:24:49 +01:00
Cédric Krier a33ee46c20 Add stock_shipment_customs module 2025-10-23 17:18:15 +02:00
Cédric Krier b9a3b1405b Add import/export agent for customs 2025-02-01 01:52:03 +01:00
Cédric Krier fb0b92a387 Update to DPD Shipment Service 4.4 2025-02-13 23:47:46 +01:00
Cédric Krier 7e169c1176 Set customs menu as top-level 2025-02-01 01:50:00 +01:00
Cédric Krier 142e06c421 Add incoterm version 2000 2024-11-14 19:03:14 +01:00
Cédric Krier 2cb43f313d Use shipping properties instead of direct field
The properties were added in 682fe06f9774 to provide abstraction between the
different shipments.
2024-11-14 12:50:59 +01:00
Cédric Krier 4cb10fa620 Generate a default shipping description for the shipment
Also for UPS, it fallbacks to "General Merchandise" if the shipping description
is empty.

Closes #14351
2025-11-05 17:18:15 +01:00
Cédric Krier da78b11fca Escape completion content with custom format
Closes #14363
2025-11-20 17:03:46 +01:00
Cédric Krier b2d45c11cd Enforce access check in export_data
As the method is using instances to construct the exported data, the access
must be checked explicitly.

Closes #14366
2025-11-17 12:26:57 +01:00
Cédric Krier f98c5e87d9 Do not display error details if empty 2025-11-12 14:57:12 +01:00
Cédric Krier 95dc47a24f Include the traceback only in RPC responses in development mode
Closes #14354
2025-11-12 14:56:34 +01:00
Cédric Krier 41cc370e99 Enforce access check in HTML editor route
Use .read and .write instead of .browse and .save when editing field via the
HTML editor.

Closes #14364
2025-11-17 10:28:49 +01:00
Cédric Krier 3a4a23c3df Support Belgian structured communication on invoices, payments and statement rules 2025-09-30 00:41:08 +02:00
Cédric Krier e967e80974 Add payment reference to statement rule 2025-09-30 00:11:08 +02:00
Cédric Krier 3c8223a153 Allow customization of the payment reference to use 2025-09-29 15:37:10 +02:00
Cédric Krier 4c03672232 Validate the format of payment references 2025-09-29 15:33:46 +02:00
Cédric Krier 7c90b22b75 Add payment references to invoices 2025-09-30 00:11:31 +02:00
Cédric Krier 67b01f6cc3 Prevent running create quotation wizard from request in not allowed state
Using a button we can prevent to use the wizard on purchase request with a not
allowed state.
2025-11-19 12:22:51 +01:00
Cédric Krier c50d717dd7 Prevent running create purchase wizard from request with purchase line
Using a button we can prevent to use the wizard on purchase request with
purchase line.
2025-11-19 12:22:17 +01:00
Cédric Krier d4c6400c26 Include the line in the warehouse required error message for sale and purchase 2025-10-30 01:14:10 +01:00
Cédric Krier 2e03f6cf94 Set currency field when creating invoice tax via on_change
This is needed to get the client format correctly the field using the currency
as digits.

Closes #14346
2025-11-04 10:25:02 +01:00
Cédric Krier e5b29042d8 Force reload on save of record
07831c6eddaf implemented the default value as `false` but in tryton it has
always been `True` since b8658ba902a5.
Some save calls relies on the record being reloaded like in the editable tree
when selecting another row.
This synchronise the behavior of all save calls between tryton and sao.

Closes #14345
2025-11-03 11:16:05 +01:00
Cédric Krier 4b9ec5939e Set TRYTOND_APPNAME and TRYTOND_TZ only if they are not set or empty
Closes #14322
2025-10-31 12:11:02 +01:00
Cédric Krier bee92b80fc Replace party on account statement origin
Closes #14282
2025-10-31 11:45:54 +01:00
Cédric Krier 59184cdfdd Add a default Incoterm to web shops
The default Incoterm is set by default to sale from web shop for which it is
required.
And the shipment address is also set by default as Incoterm location when it is
required.

Closes #14337
2025-10-31 11:57:19 +01:00
Cédric Krier 62a54d655f Set shipment cost method to order for sale from web shop
Closes #14336
2025-10-30 10:23:35 +01:00
Cédric Krier fe7bff23f8 Set Belgian account 406 as debt
Closes #14320
2025-10-27 15:52:04 +01:00
Cédric Krier 20a9ffce1c Set Belgian account 360 as debt
Closes #14321
2025-10-27 15:51:10 +01:00
Cédric Krier 66b0738f2e Set a default value when calculating clearing reconcile of a payment group
Closes #14301
2025-11-02 16:53:22 +01:00
Cédric Krier c33886a989 Update documentation of purchase request 2025-11-11 18:00:55 +01:00
Cédric Krier 4a17e80070 Use the fastest product supplier when anyone can supply on time
Closes #12806
2025-11-11 18:04:50 +01:00
Cédric Krier a735ea7a2b Make target ids unique when reading related fields
The result is converted into a dict based on the id so we must ensure that the
ids read are unique in case the same id appears after size limit.

Closes #14304
2025-10-21 12:07:40 +02:00
Cédric Krier 6c7e903226 Test from location when checking warehouse for purchase line with negative quantity
Closes #14333
2025-10-30 01:11:22 +01:00
Cédric Krier 0d5caa58e7 Use line's movable property to require incoterm
Closes #14332
2025-10-30 00:59:07 +01:00
Cédric Krier e97cd24ec2 Remove the first view_ids when opening the Many2One target from tree view
Closes #14328
2025-10-28 17:19:38 +01:00
Cédric Krier 0e5d2fc391 Use the view_ids attribute to open the Many2One target from tree view
Closes #14327
2025-10-28 17:17:31 +01:00
Cédric Krier 1f6403ba78 Use revenue account when the asset value increases or residual value is positive
Closes #14311 #14312
2025-10-23 19:23:09 +02:00
Cédric Krier 07fc626588 Hide all payment fields and buttons when using a different process method
Closes #14310
2025-10-23 18:24:26 +02:00