Cédric Krier
4452f906b7
Update Chrorus connection to use PISTE API
...
Closes #9009
2023-07-22 16:44:22 +02:00
Cédric Krier
a5f46ed059
Use SIRET code as legal ID
...
Since f5c2c4885143, the siret field is an Indetifier instance instead of the
code.
Closes #12427
2023-07-22 16:42:42 +02:00
Cédric Krier
7309e38115
Test also the amount of invoice lines without product to compute the UNCEFACT type
...
Closes #12426
2023-07-22 16:37:00 +02:00
Cédric Krier
604ae9aa31
Use empty string if street is None when rendering UNCEFACT 16B-CII
...
Closes #12425
2023-07-22 16:31:25 +02:00
Cédric Krier
6b1dacb441
Select only SEPA mandates of the same company as the payment
...
Since ce8d7a19766a record rules (and especially company rules) are no more
enforced without check access. So the mandate selection should test explicitly
for the same company.
For that a new generator method is added to party to yield mandates that can
be used for a payment so this method can be easily extended to add more
constraints.
Closes #12324
2023-08-27 14:02:57 +02:00
Cédric Krier
26c431a686
Make account type on line unique per budget
...
Closes #12527
2023-08-25 13:35:31 +02:00
Cédric Krier
8a7aaeb278
Do not invoice non order line
...
As we can only ensure to keep the layout for the first invoice, it is less
astonishing for the user that we never invoice the non lines.
2023-08-26 14:59:59 +02:00
Cédric Krier
ccfd9e0797
Create invoice line for not line only if it is for the first invoice
...
This is the only case where we are sure that the layout will be conserved.
Closes #12320
2023-08-25 22:37:22 +02:00
Cédric Krier
60e3544d81
Convert shipment costs in company currency when they have been generated
...
For shipment cost from the shipment, the effective date of the shipment is
used.
And for shipment cost from the sale order, the sale date is used.
2023-08-21 15:58:05 +02:00
Cédric Krier
d03ff8f1de
Deduce sold shipment cost from shipment once sale is shipped
...
When the shipment cost method is by order, the sold shipment cost is
dispatched between shipments once the sale is shipped.
The amount is stored on the shipment for each sale (in case the shipments have
been grouped) and deduced from the shipment cost when it is set on the stock
moves.
Closes #12506
2023-08-21 15:34:26 +02:00
Cédric Krier
237b3b3e49
Reuse shipment cost readonly to set carriage cost readonly
2023-08-21 15:30:53 +02:00
Sergi Almacellas Abellana
694243293b
Set taxes date on recall invoice lines
...
Closes #12513
2023-08-23 09:42:20 +02:00
Cédric Krier
61aceb4f19
Use One2Many for searching advance and recalled invoice line
...
The method get_recall_lines is called by create_invoice which is called from
the processing loop on the sales. So it is better to use relation fields
instead of triggering search query on each iteration.
2023-08-29 17:35:58 +02:00
Cédric Krier
5f42fb244a
Add test scenario for sale advance payment with invoice on shipment
...
#12319
2023-08-29 17:07:45 +02:00
Cédric Krier
203fd3a1cf
Recall advance line only for the amount not yet recalled
...
The method get_recall_lines is called each time an invoice is created so it
should consider the amount previously recalled.
Closes #12319
2023-08-29 17:06:55 +02:00
Cédric Krier
e2e767fae2
Rename Uom to Unit for move
...
Closes #12561
2023-09-13 09:42:02 +02:00
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
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