Commit Graph
51687 Commits
Author SHA1 Message Date
Cédric Krier 1a2dfd5124 Increase version number
--HG--
branch : 6.0
2023-11-03 18:03:29 +01:00
Cédric Krier 8726e7ab66 Add tag sale_subscription-6.0.5
--HG--
branch : 6.0
2023-11-03 18:03:21 +01:00
Cédric Krier 4b25bfe43a Prepare release sale_subscription-6.0.5
--HG--
branch : 6.0
2023-11-03 18:03:20 +01:00
Cédric Krier 3f5c2d5dab Increase version number
--HG--
branch : 6.0
2023-11-03 18:00:33 +01:00
Cédric Krier 8e748d2422 Add tag stock_lot-6.0.2
--HG--
branch : 6.0
2023-11-03 18:00:25 +01:00
Cédric Krier fd518f6190 Prepare release stock_lot-6.0.2
--HG--
branch : 6.0
2023-11-03 18:00:24 +01:00
Cédric Krier 3119c6106c Increase version number
--HG--
branch : 6.0
2023-11-03 17:54:03 +01:00
Cédric Krier 937709f38d Add tag sao-6.0.32
--HG--
branch : 6.0
2023-11-03 17:53:56 +01:00
Cédric Krier 2e0a2873bf Prepare release sao-6.0.32
--HG--
branch : 6.0
2023-11-03 17:53:55 +01:00
Cédric Krier 3a56f71745 Increase version number
--HG--
branch : 6.0
2023-11-03 17:51:21 +01:00
Cédric Krier 51a1c8d4e6 Add tag tryton-6.0.30
--HG--
branch : 6.0
2023-11-03 17:51:08 +01:00
Cédric Krier 6bae4a7c30 Prepare release tryton-6.0.30
--HG--
branch : 6.0
2023-11-03 17:51:07 +01:00
Cédric Krier da2f6fcbd0 Increase version number
--HG--
branch : 6.0
2023-11-03 17:46:52 +01:00
Cédric Krier 188ab1b090 Add tag trytond-6.0.37
--HG--
branch : 6.0
2023-11-03 17:46:36 +01:00
Cédric Krier 9e75ccd57a Prepare release trytond-6.0.37
--HG--
branch : 6.0
2023-11-03 17:46:35 +01:00
Cédric Krier 35c4d729f3 Do not fail when parsing invalid Decimal value in number entry
Closes #12692
(grafted from f9c0481e7aad3c8229f1660d7367b0edd803389b)

--HG--
branch : 6.0
2023-10-31 21:42:11 +01:00
Cédric Krier c3e99d4948 Update amount when changing unit or taxes of purchase line
Closes #12648
(grafted from 0b36d595eb2f89bd6b3197a8d504cea4e1042a70)

--HG--
branch : 6.0
2023-10-29 14:23:34 +01:00
Cédric Krier ee958135d4 Update amount when changing unit or taxes of sale line
Closes #12648
(grafted from 9d8d80125995fe6926598c35c93efc7ed97f6b20)

--HG--
branch : 6.0
2023-10-29 14:23:10 +01:00
Cédric Krier b8e6f5c0f0 Iterate over removed and deleted records when adding record to group
In Javascript for...in iterate over properties but we want to iterate over
values with for...of. Otherwise record added back is not un-removed or
un-deleted.

Closes #12663
(grafted from 9ba209792c8be4b422751e91c20bb39cbf28c61d)

--HG--
branch : 6.0
2023-10-30 17:52:48 +01:00
Cédric Krier e8da8ca0e1 Test to_date in context to get dates for general ledger
1b3d9d7a758f added the wrong test to exclude period and dates.

Closes #12629
(grafted from 43f382562aa3365af4e03cc5c1073b400ea0d604)

--HG--
branch : 6.0
2023-10-21 16:21:40 +02:00
Cédric Krier 166280687c Prevent storing Decimal with too much trailing zero
The trailing zero are kept in the Decimal and rendered in the string
representation which is unexpected for a field with limited digits.

Closes #12587
(grafted from cfbc9e902c1d5f9bc299b536b495a98fda380369)

--HG--
branch : 6.0
2023-10-21 14:12:12 +02:00
Cédric Krier feeb099a17 Depend on product supplier unit to compute unit on price
The initial implementation 6a6b4ef53946 wrongly define the depends for the
function.

Closes #12653
(grafted from 8de5ef43252fb2cd47f1ab3dd239af299c549955)

--HG--
branch : 6.0
2023-10-22 12:37:04 +02:00
Cédric Krier c30eb5b1de Do not change line type when calling on_change_product
The wizard to modify header calls on_change_product on all lines but their
type must not change.

Closes #12633
(grafted from d7983af6fe6087b48c9200b7a43f7d74c234c6f9)

--HG--
branch : 6.0
2023-10-22 10:36:20 +02:00
Cédric Krier f89ec497ba Deduce from credit amount only sales from the user's company
Since #4080 the record rules are no more enforced on getter of Function
fields.

Closes #12586
(grafted from 27f9dfa253e48fd885ea54d5b983186d7e829583)

--HG--
branch : 6.0
2023-10-21 13:08:50 +02:00
Cédric Krier c2e097fbf2 Do not fail when reconciling an empty list
Closes #12626
(grafted from 2f04f787260ea6bd52ecf4b3ac414d343c78dc70)

--HG--
branch : 6.0
2023-10-21 15:46:53 +02:00
Cédric Krier 24684e6dc5 Allow to search on default UoM of stock lot
Since e49aaf8553e1, default UoM of "Lots by Locations" has a searcher using
the default UoM of the stock lot.

Closes #12583
(grafted from 09a961f1f5e27c8f0787bea29c881ee67c9163a6)

--HG--
branch : 6.0
2023-10-21 01:03:21 +02:00
Cédric Krier c375b2f1c7 Do not raise StopIteration when calling pairwise with empty iterable
Closes #12652
(grafted from bf2f33fe3adf63deae1162ab64f0a1c2cc43eee0)

--HG--
branch : 6.0
2023-10-18 18:28:04 +02:00
Cédric Krier 2bf177778c Defer invoice line only once
The post method can be called multiple times for an invoice by process but
only one deferral is allowed by line.
Also the initial draft deferral may be delete in case of mistake so we must
not create automatically a new one later.

Closes #12567
(grafted from 7c72d42d78d92db1fbe36217d3ba4720bb621521)

--HG--
branch : 6.0
2023-10-21 00:48:14 +02:00
Cédric Krier 87086931cc Use assert_not_called in Mock instead of calling not_called
(grafted from b097604b69b899117a9d3c00c3fdae8487356e48)

--HG--
branch : 6.0
2023-10-23 09:34:26 +02:00
Cédric Krier 4d54149d9f Cancel and recreate shipment after testing over shipping
The first shipment is already picked so it can not be reset to draft to update
the inventory moves.

Closes #12661
(grafted from ed525f3d64e1d1b11afe714a43e9b0b7c3044061)

--HG--
branch : 6.0
2023-10-24 10:25:32 +02:00
Cédric Krier 35da962a82 Test deferred balance against a range of possible values
Depending of the day of the year, the amount deferred may vary of 2 days.

Closes #12545
(grafted from b2c54cf3d7a0db62c31cc4d04364c7b48a56c2cf)

--HG--
branch : 6.0
2023-09-01 18:15:05 +02:00
Cédric Krier 343a431b8b Do not include depends of field without read access to view definition
Closes #12640
(grafted from b41c36a66c64974a8c5965cd111526df1574c2b1)

--HG--
branch : 6.0
2023-10-12 16:28:54 +02:00
Cédric Krier 24058779c6 Return None when date_trunc is called with NULL in SQLite
Closes #12649
(grafted from 20cdeff55e33886505d9d627b06c5943683653da)

--HG--
branch : 6.0
2023-10-17 17:09:36 +02:00
Maxime Richez a8d28ddca8 Allow to send email without files to attach
Closes #12645
(grafted from 177d9695220f1ec64eab311e11ff7c97b1880cfb)

--HG--
branch : 6.0
2023-10-16 16:48:40 +02:00
Cédric Krier 29d86ae0ad Use explicit Stripe API version
Since Stripe v6 the API version is set by the library instead of using the
configured default.

Closes #12641
(grafted from 4e94ed80b740983c932e047f8a439215d5d40028)

--HG--
branch : 6.0
2023-10-12 20:26:35 +02:00
Cédric Krier 6104da65e7 Use purchase line unit when invoice line has no unit
Closes #12462
(grafted from 582bbe2add15d9d856b3a9315b8c8434f66b7248)

--HG--
branch : 6.0
2023-10-09 18:31:37 +02:00
Cédric Krier 3d9ec296d9 Use sale line unit when invoice line has no unit
Closes #12462
(grafted from 2190acdc50ef3ba11c02847b0ee853d2e9c04179)

--HG--
branch : 6.0
2023-10-09 18:31:27 +02:00
Cédric Krier ac88e12308 Do not compute account party for general ledger line without party
Closes #12570
(grafted from d7fee1d3bf9107875d7ac7bd447b1e6e563c33aa)

--HG--
branch : 6.0
2023-10-05 23:18:51 +02:00
Cédric Krier b58bed8718 Make purchase request description always readonly
The changeset 3a0931d04904 added a readonly states but the description is a
substitut to the product so it should be readonly like the product.

Closes #12555
(grafted from 940abe6442e1dda8ef6c0d8a9bc981fa27bf6151)

--HG--
branch : 6.0
2023-10-07 19:22:06 +02:00
Cédric Krier 7767f23a16 Prevent changing company of invoice with lines filled
Closes #12620
(grafted from 4ec64ab34473dd86979b8bb2b02b6c60dbd7e68f)

--HG--
branch : 6.0
2023-10-07 08:47:30 +02:00
Maxime Richez daf3100de6 Set inventory moves readonly for picked customer shipment
Closes #12613
(grafted from e5736b1058c49e0789188d1171cb6fa9506a2143)

--HG--
branch : 6.0
2023-10-05 13:33:29 +02:00
Cédric Krier 7547af9ebf Record.get_eval must return only loaded values
Sao must behave the same way as tryton does with the changeset 4d2bd7127a51.

Closes #12415
(grafted from 9a60185d21f0652c35045c89b8a34029ac3b9214)

--HG--
branch : 6.0
2023-09-24 19:01:07 +02:00
Cédric Krier ae29cc72c5 Do not store in transaction cache instances of Reference fields
If the target of the Reference field is deleted, the transaction cache is not
cleared because there is no "ON DELETE" support for Reference field. Instead
the ids are checked in the Reference.get method.

Closes #12599
(grafted from 7f25936732310704ad6296d5ab3f35e3276e2157)

--HG--
branch : 6.0
2023-09-28 17:44:29 +02:00
Adrià Tarroja Caubet 566ba8c143 Do not set default value for removed consumed field when copying subscription
The field consumed has been replaced by consumed until since 3ddf6d1eab0d.

Closes #12577
(grafted from 72620b88ebdb06308b437aa7a1c43866c9af04fe)

--HG--
branch : 6.0
2023-09-24 19:07:58 +02:00
Cédric Krier b6bf82de3d Do not uniquely sort list in Dict field without schema
When there is no schema, the list values are not for a MultiSelection entry.

Closes #12417
(grafted from aedd6a22eabc62538664c0127739ac02acd8f429)

--HG--
branch : 6.0
2023-07-19 22:02:49 +02:00
Cédric Krier 34dd5b884a Store a copy of reference selection
Same as #810 but for reference fields
(grafted from cc8fc33b72a49ecaef2904761bff3e454da96275)

--HG--
branch : 6.0
2023-06-21 10:59:55 +02:00
Nicolas Évrard d81eeff5c6 Stop the edition of Selection fields in editable Treeviews on focus-out
Closes #12308
(grafted from 9c81c15ec5164ed8e1e3bda05dc932c1430f65d7)

--HG--
branch : 6.0
2023-06-05 19:09:46 +02:00
Cédric Krier 7e545e6df4 Do not set rec_name for unsaved record
Since 0db956eb2505 _changed_value is used for on_change_with calls, so it can
have to deal with unsaved Many2One value if it is the parent of a One2Many.
(grafted from 206e247e16437dc8b2f1989cc13b7e48a1d0dfc7)

--HG--
branch : 6.0
2023-09-11 22:02:27 +02:00
Cédric Krier effbb51ff8 Bind callback of history_revisions to the tab form
bd73cefcf802 backported code that uses `this` but the upper versions are using
arrow functions.

Closes #12642

--HG--
branch : 6.0
2023-10-13 09:16:00 +02:00
Cédric Krier 0eabf4ea82 Increase version number
--HG--
branch : 6.0
2023-10-05 00:27:39 +02:00