Cédric Krier
f03ccfd7a6
Round price returned by get_sale_price
2023-08-17 17:57:32 +02:00
Cédric Krier
42ba6d2d66
Use absolute quantity to compute sale price
...
Closes #12496
2023-08-17 16:30:28 +02:00
Cédric Krier
982356c4ab
Test purchase invoice to skip using instance
...
Since baf7fc59e2d4 skips contains a sets of instances instead of of ids.
Closes #12476
2023-08-16 18:30:57 +02:00
Cédric Krier
e1123853ab
Do not skip many2many in _changed_values
...
Like the one2many they should always be processed as they can have been
updated.
Closes #12474
2023-08-16 11:37:12 +02:00
Cédric Krier
bc5a28a50c
Use _changed_values to return result of on_change_with
...
This allows to support add/update/remove/delete for xxx2many fields and
rec_name for xxx2one and reference fields.
Closes #12473
2023-08-16 16:11:51 +02:00
Cédric Krier
9aa4a8583b
Add decorator on RPC
2023-08-16 10:39:16 +02:00
Cédric Krier
fe66322ab1
Use on_change_result for on_change call
...
The ModelView.on_change method returns directly the changed values instead of
a list with the changed values.
2023-08-16 09:37:26 +02:00
Cédric Krier
bce30f97f9
Update _changed_values docstring about Many2Many
...
Since 41f7d6828fcd Many2Many are managed the same way as One2Many.
2023-08-16 09:20:09 +02:00
Cédric Krier
b0e4093dcb
Trigger build when .readthedocs.yaml is changed
2023-09-03 18:05:23 +02:00
Cédric Krier
8a38e435fc
Set a return url when confirming setup intent in test scenario
...
A return URL is now required if the payment methods do not disable it.
Closes #12509
2023-09-04 23:38:57 +02:00
Cédric Krier
310d8d1daf
Set visibility of active button when screen is displayed
...
Setting it on the domain parser property does not ensure that it is always set
if the parser has been cached or the context screen is not valid.
Also it is not right that accessing a property trigger a change of state.
As the button visibility can change between views, the active domain must only
be added if the button is currently visible.
Closes #12549
2023-09-04 18:32:52 +02:00
Cédric Krier
8d7e1b6b83
Do not try to duplicate moves for transit if internal shipment has no move
...
Closes #12541
2023-09-04 16:47:49 +02:00
Cédric Krier
1f3dcc86c7
Do not fail to copy empty list of ModelStorage
...
Closes #12541
2023-09-04 16:41:33 +02:00
Blaž Bregar
170f12be30
Added new identifiers from stdnum 1.19
2023-09-10 10:11:16 +00:00
Nicolas Évrard
42cdc26e23
Preserve order of inserted column names on multiple insertion
...
The order of column names must be the same as the list of values to recompose
a correct dictionary of values when raising error message.
Closes #12552
2023-09-10 11:23:19 +02:00
Cédric Krier
edd198c949
Extend translation index to be fully used when searching on translated field
2023-08-29 11:03:19 +02:00
Cédric Krier
423e32a989
Backed out changeset 10e16de6a494
...
Applying the domain on the LEFT JOIN create wrong result because the fallback
value (from COALESCE) is then used even if a valid translation exists.
Closes #11781
2023-08-29 10:51:04 +02:00
Cédric Krier
7f9550e9ba
Return 0 as default recomputed fixed cost price
...
Closes #12535
2023-08-29 14:24:58 +02:00
Cédric Krier
93dc054222
Select current revision when showing the revision popup
...
Closes #12472
2023-08-14 19:44:38 +02:00
Cédric Krier
7b02a795c7
Do not use the lower revision when selected revision is empty
...
Closes #12472
2023-08-14 19:43:52 +02:00
Cédric Krier
523bcd4011
Use module name to build path for readthedocs requirements
2023-09-03 12:03:49 +02:00
Cédric Krier
6a06579e13
Use Sphinx book theme for documentation
2023-09-01 09:44:09 +02:00
Cédric Krier
6d4b80cd6d
Remove shipment cost method if there is no carrier for web sale
...
Since 52a777d4e4d0 the shipment cost method is no more removed by on_change's.
Closes #12546
2023-09-02 09:54:06 +02:00
Cédric Krier
ea915152a7
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
2023-09-01 18:15:05 +02:00
Cédric Krier
1e1ee72f65
Use VARCHAR with size in SQL type for SQLite
...
Without the size the TableHandler creates a schema without size. When the
schema is updated, it raises a warning because it can not resize from no size.
Also even if SQLite does not enforce the size of the schema, at least we have
a correct schema.
Closes #12471
2023-08-14 19:36:28 +02:00
Cédric Krier
23a718ab1d
Do not render deactivated actions in completion
...
The disabled attribute is not enough to prevent the click event.
So it is simpler to not render the action that are not supported like tryton
does.
Closes #12470
2023-08-14 09:56:36 +02:00
Cédric Krier
51b032442d
Clean self references before deleting records
...
When deleting a full branch of a tree, if the number of records deleted is
higher than IN_MAX, the foreign key constraint may prevent the deletion
because the group of records deleted may still be referencing a record in the
next group to delete.
To prevent this failure, we must first clean the values of the column with
foreign key referencing the same table. We use the table id as value instead
of NULL in case the column is not nullable.
2023-08-10 16:42:36 +02:00
Cédric Krier
d1779f0430
Reuse get_related_records to search restricted foreign keys
2023-08-10 15:07:37 +02:00
Cédric Krier
dfa79b36b6
Simplify foreign key search in ModelSQL delete
2023-08-10 15:05:23 +02:00
Cédric Krier
b8e4b5bbc8
Use module name instead of package name in readthedocs configuration
2023-08-12 13:53:38 +02:00
Cédric Krier
e3444ecac8
Check modules against template model
...
Some files in modules should always be the same as the template.
We add a CI task to check those files against a new templated version of the
module.
2023-08-12 13:52:54 +02:00
Nicolas Évrard
fbc05e3d22
Use source of translation in the unique_key of Translation objects
...
Closes #12467
2023-08-11 18:40:32 +02:00
Sergi Almacellas Abellana
9bd694e6bc
Add __slots__ to product kit AmendmentLineMixin
...
Closes #12533
2023-08-29 10:14:53 +02:00
Sergi Almacellas Abellana
9692e052ed
Add sale_amendment and purchase_amendment as tests extras
2023-08-29 10:14:04 +02:00
Cédric Krier
804476f318
Remove translations with empty source
...
It is useless to keep fuzzy translation with empty source.
Closes #12477
2023-08-16 18:24:32 +02:00
Cédric Krier
36ca97d371
Add resource module on readthedocs index
2023-08-14 15:07:41 +02:00
Cédric Krier
ad6e147083
Prepend statement journal with Statement
2023-08-05 22:00:10 +02:00
Cédric Krier
babedd9246
Prepend payment journal with Payment
2023-08-05 21:59:48 +02:00
Cédric Krier
14bc5d2a6c
Use selection widget for journal fields
...
It is expected to have only a small number of journals.
But also it is uncommon to create of a new journal from a form.
So it provides a better user experience to use a selection widget.
2023-08-06 00:34:16 +02:00
Cédric Krier
5ce06c7d69
Post write-off and exchange moves when reconcile posted lines
...
Closes #12439
2023-07-29 15:10:59 +02:00
Cédric Krier
e862ca836a
Run doc tests with different globals
...
Closes #12441
2023-07-29 15:11:05 +02:00
Cédric Krier
98eeb1727a
Remove unused _location_amount from customer shipment
...
The method was introduced by a3aa9d985589 for the assign_try method but it is
no more used.
2023-08-20 01:18:11 +02:00
Sergi Almacellas Abellana
3ad60ab0dd
Create user applications as validated from user preferences
...
Closes #12376
2023-08-27 11:46:00 +02:00
Cédric Krier
030dce36ac
Remove biginteger widget from tryton and sao
...
Since 73fe133d7a2c trytond does not have anymore a biginteger type.
2023-08-18 20:50:15 +02:00
Cédric Krier
1882caa576
Do not set carrier if no shipment cost is set
...
Since d7437e620941 the shipment cost can be defined per party. So a party
without shipment cost should not have a carrier set by default.
A carrier should be set by default only if it is required since bf0b2af7700f.
2023-08-11 09:49:22 +02:00
Sergi Almacellas Abellana
c9b90a362c
Add search context fields to purchase line product depends
...
They should be added explicity because they are not included in display_depends
nor edition_depends
Closes #12407
2023-07-19 11:46:44 +02:00
Sergi Almacellas Abellana
8cd6e60a52
Add search context fields to sale line product depends
...
They should be added explicity because they are not included in display_depends
nor edition_depends
Closes #12407
2023-07-19 11:46:04 +02:00
Sergi Almacellas Abellana
c5bafdb2ed
Test searching on move's purchase and sale from kit
2023-08-02 20:37:15 +02:00
Cédric Krier
91fb1e7c24
Use OR-ed domain when composing clauses from exclusive join
...
When a searcher of a Function field compose a domain using mutually exclusive
joins, the boolean operator must always be OR because only one clause is not
NULL.
Closes #12291
2023-08-02 20:35:13 +02:00
Cédric Krier
855a0aaeab
Update origin of outgoing moves for internal shipment
...
When synchronize moves, the origin of outgoing is updated to point the
new incoming move instead of the original one.
Closes #12272
2023-08-25 18:08:17 +02:00