Cédric Krier pushed to branch branch/6.8 at Tryton / Tryton


Commits:
893b4e61 by Cédric Krier at 2023-09-11T22:02:27+02:00
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)
- - - - -
b1f7c10d by Cédric Krier at 2023-09-17T19:19:17+02:00
Do not fail to set default fiscal year when context value is None

We can not compare contextual fiscalyear or period as positive if their values
have been set to None.

Closes #12502
(grafted from 4580a66ede4ff47503facb54948624bd9335d720)
- - - - -
b87bbe3e by Cédric Krier at 2023-09-17T19:39:19+02:00
Keep trying to rename sequence when table is renamed

For table renamed before baa87cf1a343, we must keep renaming existing sequence
because the migration to identity expect that the sequences include the table
name.

Closes #12245
(grafted from ff68233bdeb11cdd34c274d517301e62812df213)
- - - - -
8e30f30c by Nicolas Évrard at 2023-06-05T19:09:46+02:00
Stop the edition of Selection fields in editable Treeviews on focus-out

Closes #12308
(grafted from 9c81c15ec5164ed8e1e3bda05dc932c1430f65d7)
- - - - -
54b6a353 by Cédric Krier at 2023-09-26T09:48:13+02:00
Return promotion unit price as None if it is evaluated to Null

Closes #12591
(grafted from b140fa6ef7a16106c7e1c536fca54957b9238842)
- - - - -
93fa8660 by Cédric Krier at 2023-09-24T21:09:34+02:00
Block row selected handler when unselect all of list-form

aa8eb78f1b75 and d0c1933ce509 blocked the wrong method before calling
unselect_all.

Closes #12451
(grafted from e3e6d713c5df435a701d46e4ec18fa0ea7f6d516)
- - - - -
3dcc4979 by Cédric Krier at 2023-06-21T10:59:55+02:00
Store a copy of reference selection

Same as #810 but for reference fields
(grafted from cc8fc33b72a49ecaef2904761bff3e454da96275)
- - - - -
01ec2982 by Cédric Krier at 2023-07-19T22:02:49+02:00
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)
- - - - -
c5e9686d by Adrià Tarroja Caubet at 2023-09-24T19:07:58+02:00
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)
- - - - -
c2aada93 by Adrià Tarroja Caubet at 2023-09-14T16:15:12+02:00
Fix wrong eval domain field on sale line actual_quantity

Close #12568
(grafted from 4019093b3c9a3317146a416d76d3a38c2506b926)
- - - - -
75080b77 by Cédric Krier at 2023-09-24T23:59:20+02:00
Convert ImmutableDict points value from quality inspection before modify it

Closes #12551
(grafted from 1ff533c6df4d761bab9547e56baaa2b8b82debde)
- - - - -
720faf2c by Cédric Krier at 2023-09-28T17:44:29+02:00
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)
- - - - -
1f79f72f by Cédric Krier at 2023-10-02T09:44:26+02:00
Remove trailing comma on time_series definition on purchase reporting per 
product

Closes #12605
(grafted from d29f31863014a8d99c5d802f109c6ef475fc219e)
- - - - -
a2eff6b6 by Cédric Krier at 2023-09-20T09:59:02+02:00
Add user to get keyword cache

Since d41d48d68cdf model access is checked for window actions. So the returned
keywords depend on the user access rights.

Closes #12580
(grafted from 766e6e71e72759a0f5717916db68eb8f076900ca)
- - - - -
951d0014 by Cédric Krier at 2023-09-24T19:01:07+02:00
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)
- - - - -
b846f485 by Cédric Krier at 2023-09-27T09:37:07+02:00
Use __file__ attribute of loaded module for egg modules

Since pip >= 23, the Distribution location does not point to the development
directory.

Closes #12582
(grafted from 2306ca8df7eeca45f8ee070ab19aa508cd6e3bec)
- - - - -
5773e8d1 by Maxime Richez at 2023-10-05T13:33:29+02:00
Set inventory moves readonly for picked customer shipment

Closes #12613
(grafted from e5736b1058c49e0789188d1171cb6fa9506a2143)
- - - - -
e3004023 by Cédric Krier at 2023-10-04T17:17:51+02:00
Compute taxes when sale is changed on line

Closes #12612
(grafted from 81e72b158bc592a3a1ce96f82a909984f3a67e7c)
- - - - -
5f96cf7a by Cédric Krier at 2023-10-04T17:18:47+02:00
Compute taxes when purchase is changed on line

Closes #12612
(grafted from ea22076d49392a7c23b31f5cec8a5bbc01e6d77d)
- - - - -
27984809 by Cédric Krier at 2023-10-07T08:47:30+02:00
Prevent changing company of invoice with lines filled

Closes #12620
(grafted from 4ec64ab34473dd86979b8bb2b02b6c60dbd7e68f)
- - - - -
ed58ab71 by Cédric Krier at 2023-10-07T19:22:06+02:00
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)
- - - - -
6cdd85b5 by Cédric Krier at 2023-10-07T20:05:38+02:00
Add missing button decorator to POS cash transfer

Closes #12623
(grafted from 9ff2578f226e0d99649a4736ece248992382c6a6)
- - - - -
c2d291ab by Cédric Krier at 2023-10-05T23:18:51+02:00
Do not compute account party for general ledger line without party

Closes #12570
(grafted from d7fee1d3bf9107875d7ac7bd447b1e6e563c33aa)
- - - - -
7a91aaf9 by Cédric Krier at 2023-10-09T18:31:27+02:00
Use sale line unit when invoice line has no unit

Closes #12462
(grafted from 2190acdc50ef3ba11c02847b0ee853d2e9c04179)
- - - - -
a5ee3eba by Cédric Krier at 2023-10-09T18:31:37+02:00
Use purchase line unit when invoice line has no unit

Closes #12462
(grafted from 582bbe2add15d9d856b3a9315b8c8434f66b7248)
- - - - -
f7c7f76e by Cédric Krier at 2023-10-12T20:26:35+02:00
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)
- - - - -
aca07ab4 by Maxime Richez at 2023-10-16T16:48:40+02:00
Allow to send email without files to attach

Closes #12645
(grafted from 177d9695220f1ec64eab311e11ff7c97b1880cfb)
- - - - -
e97c5177 by Maxime Richez at 2023-10-16T16:55:58+02:00
Remove duplicate party on invoice lines list

Since bd7b1e764e0b, party and description are added to invoice line list.

Closes #12638
(grafted from 865c7db355b25cb8ba9c47a6953069011c785bca)
- - - - -
3eec9579 by Cédric Krier at 2023-10-16T16:17:05+02:00
Add parent_action as depends on event and on activity fields

It is needed otherwise non editable view displaying those fields will set the
value to None thanks to the domain inversion.

Closes #12646
(grafted from 4b81c88771a237acf58420bddb453125d7e638d0)
- - - - -
8eb4676f by Cédric Krier at 2023-10-17T17:09:36+02:00
Return None when date_trunc is called with NULL in SQLite

Closes #12649
(grafted from 20cdeff55e33886505d9d627b06c5943683653da)
- - - - -
5b4ca833 by Cédric Krier at 2023-10-11T18:34:32+02:00
Set party clause to None when retrieve currencies to reconcile without party

Closes #12601
(grafted from 0718fab4f762de36eaea9033faa7716a2006d69c)
- - - - -
99eb09a1 by Cédric Krier at 2023-10-12T16:28:54+02:00
Do not include depends of field without read access to view definition

Closes #12640
(grafted from b41c36a66c64974a8c5965cd111526df1574c2b1)
- - - - -
444285f7 by Adrià Tarroja Caubet at 2023-10-22T10:43:36+02:00
Update grouping fields methods to receive grouped instance

f6e6e1921a54 changed the property into a method with the grouped instance as
parameter. So other modules extending the method must be updated.

Closes #12634
(grafted from 4e84027dbc2e97b3660f73f703752541a4fbaf1c)
- - - - -
09c50cbd by Adrià Tarroja Caubet at 2023-10-22T17:25:25+02:00
Add missing workflow transition to open method

Closes #12658
(grafted from c14900ba6741a6e84ee5387704455eb47b8387d7)
- - - - -
e45530da by Cédric Krier at 2023-09-01T18:15:05+02:00
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)
- - - - -
e966a015 by Cédric Krier at 2023-10-24T10:25:32+02:00
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)
- - - - -
5decd823 by Cédric Krier at 2023-10-23T09:34:26+02:00
Use assert_not_called in Mock instead of calling not_called
(grafted from b097604b69b899117a9d3c00c3fdae8487356e48)
- - - - -
ffa52c5d by Cédric Krier at 2023-10-13T15:07:29+02:00
Do not fail to sum cost when move has not cost price for allocation by cost

Since b1d0590ca501 set_shipment_cost can be called on shipment that are not
yet done.

Closes #12643
(grafted from 1caec43ab3072fcfbe81c0fe0254e01a8c021cdf)
- - - - -
39b1e54a by Cédric Krier at 2023-10-19T15:49:30+02:00
Clear cached string of selection fields when client changes the value

Closes #12656
(grafted from 850f901bfe1f41be0d72ba5dd7257cf46f06adc0)
- - - - -
c07ac391 by Cédric Krier at 2023-10-21T00:48:14+02:00
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)
- - - - -
3afcc187 by Cédric Krier at 2023-10-18T18:28:04+02:00
Do not raise StopIteration when calling pairwise with empty iterable

Closes #12652
(grafted from bf2f33fe3adf63deae1162ab64f0a1c2cc43eee0)
- - - - -
ed5ec54b by Cédric Krier at 2023-10-21T01:03:21+02:00
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)
- - - - -
ac8c5ed1 by Cédric Krier at 2023-10-21T14:29:59+02:00
Do not test active clause of dunning being in a set

The clause may contain unhashable types.

Closes #12590
(grafted from dc6e00196fe665736010a2a82bd87639e9b741a5)
- - - - -
2018417a by Cédric Krier at 2023-10-21T15:46:53+02:00
Do not fail when reconciling an empty list

Closes #12626
(grafted from 2f04f787260ea6bd52ecf4b3ac414d343c78dc70)
- - - - -
ed5efdf2 by Cédric Krier at 2023-10-21T13:08:50+02:00
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)
- - - - -
563595ab by Cédric Krier at 2023-10-22T10:36:20+02:00
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)
- - - - -
b6d4a217 by Cédric Krier at 2023-10-22T12:37:04+02:00
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)
- - - - -
3a2e38a7 by Cédric Krier at 2023-10-21T14:12:12+02:00
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)
- - - - -
4b6b1ff6 by Cédric Krier at 2023-10-21T16:21:40+02:00
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)
- - - - -
e14b8c40 by Cédric Krier at 2023-10-26T17:58:18+02:00
Update statement lines amount from invoice when changing origins

2b9a72775e4c made the change for on_change_lines but forgot to also update
on_change_origins.

Closes #12672
(grafted from 6b9841809e4e5276b647578862aa19e095d208f6)
- - - - -
5a4e8a48 by Cédric Krier at 2023-10-28T14:20:35+02:00
Make transfers read only on non open cash session

Closes #12677
(grafted from b49f742614b33b687096bfcf276db7d9e791b97d)
- - - - -
afea6b56 by Cédric Krier at 2023-10-28T14:20:52+02:00
Make end amount read only on non open cash session

Closes #12677
(grafted from 9f456dc717a0a0fc2535230150b0df3da4497e45)
- - - - -
53218b38 by Cédric Krier at 2023-10-28T14:04:23+02:00
Copy alternative payees of invoice if it is the only party on lines to pay

Only one alternative payee is permitted on draft invoice so we can copy it
only if there is only one and it is the one that was already set when posting
the invoice (only party that appears in the lines to pay).

Closes #12528
(grafted from 7869942b84de56cac14bd826edc6ad837adab636)
- - - - -
12c590b9 by Cédric Krier at 2023-10-29T13:49:30+01:00
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)
- - - - -
68b08b93 by Cédric Krier at 2023-10-29T14:23:10+01:00
Update amount when changing unit or taxes of sale line

Closes #12648
(grafted from 9d8d80125995fe6926598c35c93efc7ed97f6b20)
- - - - -
7651d719 by Cédric Krier at 2023-10-29T14:23:34+01:00
Update amount when changing unit or taxes of purchase line

Closes #12648
(grafted from 0b36d595eb2f89bd6b3197a8d504cea4e1042a70)
- - - - -
b5417f39 by Cédric Krier at 2023-10-28T18:55:23+02:00
Do not test multiple partial payments in test scenario

The feature is now limited to Shopify Plus organizations.

Closes #12684
(grafted from 3145e7a4e59c0b2da0411fe9e6ab937fc667b012)
- - - - -


30 changed files:

- modules/account/account.py
- modules/account/move.py
- modules/account_invoice/invoice.py
- modules/account_invoice/tests/scenario_invoice_alternative_payee.rst
- modules/account_invoice_defer/account.py
- modules/account_invoice_defer/tests/scenario_account_invoice_defer.rst
- modules/account_invoice_line_standalone/view/invoice_line_tree.xml
- modules/account_payment/account.py
- modules/account_payment_stripe/payment.py
- modules/account_statement/statement.py
- modules/commission/commission_reporting.py
- modules/incoterm/sale.py
- modules/marketing_automation/marketing_automation.py
- modules/purchase/product.py
- modules/purchase/purchase.py
- modules/purchase/purchase_reporting.py
- modules/purchase/tests/scenario_purchase_modify_header.rst
- modules/purchase_request/purchase_request.py
- modules/quality/quality.py
- modules/sale/sale.py
- modules/sale/sale_reporting.py
- modules/sale/tests/scenario_sale_modify_header.rst
- modules/sale_credit_limit/party.py
- modules/sale_invoice_date/sale.py
- modules/sale_opportunity/opportunity_reporting.py
- modules/sale_point/sale.py
- modules/sale_promotion/sale.py
- modules/sale_shipment_cost/sale.py
- 
modules/sale_shipment_tolerance/tests/scenario_sale_over_shipment_tolerance.rst
- modules/sale_subscription/subscription.py


View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/83df24fe8b25d186c149464d3a4c077e81ebbbfc...b5417f395357b811bf215e2a12f9177794c08ebb

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/83df24fe8b25d186c149464d3a4c077e81ebbbfc...b5417f395357b811bf215e2a12f9177794c08ebb
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to