Commit Graph
56709 Commits
Author SHA1 Message Date
Nicolas Évrard 777ee10f27 Add support for Python 3.11 2023-01-27 11:02:47 +01:00
Nicolas Évrard f5d2b60d08 Synchronize sale_promotion_coupon_payment's tox.ini 2023-01-29 17:44:21 +01:00
Òscar Queraltó Aguilera 8e305c7dc3 Ignore cancelled moves to calculate productions cost
Closes #12093
2023-02-24 12:09:39 +00:00
Cédric Krier 4e3b817b81 Require at least version 0.12 of werkzeug
Closes #12021
2023-02-19 11:23:50 +01:00
Maxime Richez 10466a9936 Prevent deletion of payment terms in use
Closes #12085
2023-02-21 12:55:12 +01:00
Cédric Krier 16883f9579 Enforce same company for account and invoice line in Spanish SII tests
Closes #12062
2023-02-19 21:00:14 +01:00
Cédric Krier 609583221b Retry on database operation error when locking table on transaction start 2023-02-19 22:12:41 +01:00
Cédric Krier 96c0f1ec4d Rollback and clear tasks on database error in transaction of tests 2023-02-19 22:13:35 +01:00
Cédric Krier cb348ca880 Clear tasks when transaction is rollback
The tasks records are removed on rollback so there is no need to try to run
them.
2023-02-19 20:58:01 +01:00
Maxime Richez 2695deb3c5 Add history on party tax identifier
Closes #12095
2023-02-20 16:56:51 +01:00
Adrià Tarroja Caubet 8d90322512 Do not copy production lead times of product
As the BoMs are not copied and the production lead times may have a link to
the product BoM, we should not copy them.

Closes #12104
2023-02-22 09:49:07 +01:00
Cédric Krier 8dc8454449 Manage transaction error in trytond-admin
Since c8771e45b861 TransactionError can be raised and is raised when creating
the ir.configuration singleton (1f462acb3b55).

Close #12087
2023-02-19 01:17:44 +01:00
Cédric Krier ed10d87b40 Test fields_get for GIS fields 2023-02-19 00:19:50 +01:00
Cédric Krier 5759f93f01 Use proper _geometry_type to fill field definition
Closes #12083
2023-02-18 22:50:42 +01:00
Cédric Krier 1c56b9190a Test domain validation for xxx2many fields 2023-02-19 12:15:45 +01:00
Cédric Krier d5d758b59e Format value of xxx2many field with record names in Model.__names__ 2023-02-19 13:25:27 +01:00
Cédric Krier 30d2bcb2a8 Find invalid records of xxx2Many field using intersection
For xxx2Many field, the contain test is not working correctly because the
field value is a tuple of records which is never in the list of invalid
relations.

Closes #12099
2023-02-17 12:56:18 +01:00
Sergi Almacellas Abellana f471e81c11 Set timezone in product cost history scenario 2023-02-22 08:59:58 +01:00
Sergi Almacellas Abellana 08fec3a29e Catch Overflow error when converting datetime to company timestamp
Closes #11999
2023-02-15 14:26:59 +01:00
Nicolas Évrard d6b8e9671b Set the fallback application name when connecting to postgres
Closes #12074
2023-02-20 23:22:39 +01:00
Cédric Krier 82b0f2779b Enforce unique value for invisible field
Closes #12034
2023-02-11 18:07:06 +01:00
Cédric Krier de8d5477a0 Do not use One2Many with filter to get MultiValue records
The filter may prevent to find the right value.

Closes #12078
2023-02-10 16:10:08 +01:00
Cédric Krier 88aa08904c Replace same account check by domain between invoice, lines and taxes
Closes #7641
2023-02-10 16:06:23 +01:00
Cédric Krier 8eee0bce1b Remove non-standard work day unit
Since 5b0f99f81e32 it is not possible to customize rate and factor of unit
which makes such non-standard unit more an issue than a feature.

Closes #12071
2023-02-07 23:03:17 +01:00
Cédric Krier dccb78a73c Require account type when parent has one
The domain added by c39ad0bef61e is not enough to ensure type coherence
because if the type is None, the domain is still valid.
2023-02-06 19:02:27 +01:00
Cédric Krier ec2af67d42 Remove type from parent when children have different types
Closes #12070
2023-02-06 19:01:17 +01:00
Cédric Krier f510517417 Include destination name and dates to forecast record name
Closes #12064
2023-02-05 13:21:09 +01:00
Dimitrios Moustos bf2a769137 Add energy category and units 2023-02-19 13:30:28 +01:00
Cédric Krier b55fe71383 Set default attributes on Transaction __new__ method
Closes #5617
2023-02-05 00:36:58 +01:00
Cédric Krier a0c723970f Test if Shopify attribute is not empty before using it
Shopify seems to have changed from not setting empty attributes to setting
them empty.

Closes #12097
2023-02-17 12:07:43 +01:00
Nicolas Évrard c17cf5243f Keep using _database_cache if the specific cache hasn't been reset
Closes #12079
2023-02-14 13:28:36 +01:00
Nicolas Évrard 300d9a1b7f Robustly handle config files syntax errors
Closes #12011
Closes #2943
2023-02-06 18:51:38 +01:00
Cédric Krier 98adfc2c3e Add kind to info bar message to keep notification message longer
The notification message should not be cleared when the record is changed but
only when a new notification is computed.

Closes #12050
2023-01-30 00:23:16 +01:00
Cédric Krier 7843e47389 Add scroll time for calendar view 2023-01-28 10:42:58 +01:00
Cédric Krier dd8c5721be Use the same order for Month, Week and Day button as sao 2023-01-27 23:46:58 +01:00
Cédric Krier 35ca586826 Put GooCalendar widget in Viewport before ScrolledWindow
It is needed because GooCalendar does not implement scrollability.
2023-01-27 23:43:35 +01:00
Cédric Krier 90c3c5cc13 Compute calendar height to fit to the page of sao
This way if needed the scroll bar are inside the fullcalendar view and it can
scroll to an initial time.
2023-01-27 23:38:55 +01:00
Adrià Tarroja Caubet 5375918428 Include in credit amount only invoice lines of type line
Closes #12076
2023-02-14 12:48:01 +01:00
Cédric Krier 7d92024c63 Use same design to set extra than to set shipment cost 2023-02-12 23:03:15 +01:00
Cédric Krier be35a722ea Reset sale state to draft before adding or deleting extra lines
Closes #12082
2023-02-12 22:59:37 +01:00
Cédric Krier 147140ebd1 Reload screen after creating purchase from purchase request
This way the user see that the selected purchase requests have been purchased
as they are no longer in the draft tab.
2023-02-09 11:06:42 +01:00
Sergi Almacellas Abellana 1f398f071e Use number and reference for subscription rec name 2023-02-15 17:43:00 +01:00
Sergio Hervas 472b4b0aa7 Display and order by planned date when searching incoming moves from supplier shipment
Closes #12060
2023-02-13 14:30:29 +01:00
Cédric Krier 9f18ee3aea Replace shipment_type by Shipment in sale grouping method
Since the introduction in 344956d44189 of the _get_shipment_sale method, it is
the shipment class that is passed as argument and never the shipment type.
2023-02-09 11:12:20 +01:00
Cédric Krier 5105b1cdb4 Support having a price without weight
Closes #12055
2023-01-30 17:37:12 +01:00
Nicolas Évrard a2662386c3 Save moves before reconciling the lines
The previous organization of the code made it less efficient to save the move
before reconciling the lines which should the logical order.
2023-01-29 01:08:22 +01:00
Nicolas Évrard ab020a78e8 Reconcile the zero lines after saving moves 2023-01-23 17:05:55 +01:00
Cédric Krier fd3ea318a8 Allow cache size to be configured
Closes #11383
2023-01-14 20:11:32 +01:00
Maxime Richez ad5ed8cb5f Display stock moves and invoice lines in sale and purchase lines form
Closes #12003
2023-01-27 14:38:36 +01:00
Cédric Krier c374627a23 Notify for duplicate identifier
Closes #12049
2023-01-30 00:11:21 +01:00