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
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
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
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
Blaž Bregar
170f12be30
Added new identifiers from stdnum 1.19
2023-09-10 10:11:16 +00: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
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
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
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
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
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
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
Maxime Richez
f082344b66
Update origin of inventory moves for customer shipment
...
When synchronize inventory to outgoing moves, the origin of the inventory is
updated to point to the new corresponding outgoing move instead of the
original one.
Closes #12272
2023-08-25 16:34:06 +02:00
Cédric Krier
b32eeae46a
Store synchronized moves of customer shipment even when quantity is not updated
...
ed41959390ff added a synchronization on assign to prevent infinite warning
loop on pack if it creates new move without origin.
But 38e2a76db719 refactoring lost this behavior.
Closes #12503
2023-08-18 14:47:39 +02:00
Cédric Krier
d6a92dc606
Add default price list line to test sale extra
...
Since d632eee3c4c3 the price list returns None as unit price if no matching
line is found.
Closes #12505
2023-08-21 09:57:28 +02:00
Adrià Tarroja Caubet
4fffd30011
Fix pallet typo on docs
...
Closes #12520
2023-08-24 13:04:02 +02:00
Cédric Krier
ac86331140
Use only stock move with cost price for product cost price history
...
The cost price on stock move is only required by validation so we can not
ensure over time that all the stock moves selected have a cost price.
Closes #12468
2023-08-12 20:10:06 +02:00
Cédric Krier
0fe7228d58
Try to post only clearing move of journals from the contextual company
...
Closes #12453
2023-08-05 00:27:11 +02:00
Cédric Krier
69c88b6a8a
Do not apply unaccent when searching on number fields
...
Closes #12435
2023-08-03 15:54:33 +02:00
Cédric Krier
9c2a9623e4
Delete on cascade account receivable rules
...
When company, account or journal are deleted, the rules using them should not
prevent the deletion and should be deleted as well.
2023-08-07 11:19:24 +02:00
Cédric Krier
ad0b2411c8
Order number fields first by length
...
This is more natural for incremental field.
2023-08-03 15:53:18 +02:00
Cédric Krier
6daca5a307
Rename stock package code to number
2023-08-03 15:58:57 +02:00
Cédric Krier
7502b9d26d
Merge account dunning email logs into email archives
...
Closes #12214
2023-07-28 00:54:49 +02:00
Cédric Krier
4d3b90faea
Add missing ending dot in project invoice error message
2023-08-02 22:42:26 +02:00
Cédric Krier
2b96ba7428
Add access rights to stock lots by locations
...
Closes #12348
2023-07-29 23:25:26 +02:00