Cédric Krier
270ee0f8cb
Remove Weight UoM Digits on carrier price list
2023-08-20 12:50:27 +02:00
Cédric Krier
2df68915d8
Remove quantity UoM digits on stock location
2023-08-20 12:49:38 +02:00
Cédric Krier
a4cb3f9f61
Normalize Unit of Measure labels
...
For short label, we only use UoM with an help text showing with capital letter
the meaning of UoM.
2023-08-20 12:17:27 +02:00
Cédric Krier
780e781d69
Rename Lot Unit to Lot UoM for product
...
Closes #2221
2023-08-20 11:31:15 +02:00
Cédric Krier
3a6e278b39
Rename UOM to Unit for purchase request
...
Closes #2221
2023-08-21 09:31:27 +02:00
Cédric Krier
cd9dcfd84c
Rename Uom to Unit for bill of material
...
Closes #2221
2023-08-20 01:39:36 +02:00
Cédric Krier
38e87b12f8
Rename UOM to Unit for forecast line
...
Closes #2221
2023-08-20 01:24:32 +02:00
Cédric Krier
cb08557fad
Rename Uom to Unit for move and inventory
...
Closes #2221
2023-08-22 13:18:33 +02:00
Cédric Krier
d44297eae6
Rename UOM to Unit for product supplier
...
Closes #2221
2023-08-21 09:30:21 +02:00
Cédric Krier
b494a58475
Rename Uom to Unit for production
...
Closes #2221
2023-08-19 15:22:30 +02:00
Cédric Krier
a44c520de8
Fill unit price of purchase line in test scenario
...
Since 2f25450e11f6 the unit price is no more filled if there is no supplier
price or previous purchase.
2023-09-11 22:07:13 +02:00
Cédric Krier
919e6b13fa
Fill unit price of purchase line created automatically
...
Since 2f25450e11f6 the on_change_product does not always set a unit price for
purchase line. But as the field is required, it must be filled for line
created.
2023-09-11 22:06:11 +02:00
Cédric Krier
c583528ca8
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.
2023-09-11 22:02:27 +02:00
Cédric Krier
8885e86581
Return an entry for each value in names of Function field getter
...
0db956eb2505 removes this behavior if the getter return an empty defaultdict.
2023-09-11 21:58:22 +02:00
Cédric Krier
0a6e049de2
Pre-validate invoice address when confirming purchase
...
The invoice address is only required from confirmation.
Closes #12499
2023-08-17 19:29:48 +02:00
Cédric Krier
536d95a219
Do not require purchase date when pre-validate on quotation
...
The purchase date is filled by default on confirmation.
Closes #12499
2023-08-17 19:24:03 +02:00
Cédric Krier
297a9f4f1d
Use price from last purchase as product price
...
The cost price is not really relevant as purchase price because it may include
extra cost like landed cost.
Closes #12494
2023-08-17 16:26:09 +02:00
Cédric Krier
3cbb0efb43
Order by descending id to get the last 10 purchases
...
Closes #12497
2023-08-17 16:18:21 +02:00
Cédric Krier
2df45a15d4
Ensure to always have a unit price on purchase line created from request
2023-08-17 16:16:56 +02:00
Cédric Krier
d44f20599a
Keep the existing purchase price if the price from the product is empty
2023-08-17 16:16:17 +02:00
Cédric Krier
4430198462
Set only once date when computing purchase and sale prices
2023-08-17 16:13:40 +02:00
Cédric Krier
4deaaf59a2
Round price returned by get_purchase_price
2023-08-17 17:57:11 +02:00
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