Commit Graph
57 Commits
Author SHA1 Message Date
Cédric Krier 68a348dbbb Increase version number
--HG--
branch : 7.0
2024-09-16 20:23:33 +02:00
Cédric Krier 89ee9650a9 Prepare release sale_shipment_cost-7.0.6
--HG--
branch : 7.0
2024-09-16 20:23:24 +02:00
Maxime Richez 7596e64362 Do not copy shipment costs when copying sale
Closes #13384
(grafted from 37358bba5fdb2a4a092abd5e75113917a00d1b94)

--HG--
branch : 7.0
2024-09-08 16:59:17 +02:00
Maxime Richez dd946e1ad4 Do not copy cost shipments when copying invoice lines
Closes #13372
(grafted from 20a741abf07af4acd9bb558eb6eb462e69873028)

--HG--
branch : 7.0
2024-09-08 16:56:17 +02:00
Cédric Krier cd72b5d734 Increase version number
--HG--
branch : 7.0
2024-07-01 18:07:39 +02:00
Cédric Krier 7a3f70e51d Prepare release sale_shipment_cost-7.0.5
--HG--
branch : 7.0
2024-07-01 18:07:30 +02:00
Cédric Krier 12f6a3f9ac Do not update shipment cost method to Null if it is already Null
The migration update the sales already updated each time the sale is
registered. On large table, this can be slow.
(grafted from 2cef05be9239422468b60397f981346e026db5d2)

--HG--
branch : 7.0
2024-06-13 17:26:01 +02:00
Cédric Krier 63b15b47d5 Increase version number
--HG--
branch : 7.0
2024-05-01 13:19:16 +02:00
Cédric Krier 3e2286d4f2 Prepare release sale_shipment_cost-7.0.4
--HG--
branch : 7.0
2024-05-01 13:19:07 +02:00
Cédric Krier 956b5d8136 Check only shipment with cost method 'order' to invoice shipment cost on order
If the sale is linked to a shipment with a different cost method than order,
it should not be considered to decide to invoice or not the sale shipment
cost.

Closes #13171
(grafted from f290dbb1479d4a4e4aabb2f66d93bf4e042f42e6)

--HG--
branch : 7.0
2024-04-08 17:45:01 +02:00
Cédric Krier c4d4951525 Remove readthedocs
(grafted from 2f67994e59b0bca29d7b0632a51540774b109140)

--HG--
branch : 7.0
2024-02-18 18:35:54 +01:00
Cédric Krier 826a3a6eed Increase version number
--HG--
branch : 7.0
2024-03-03 13:19:25 +01:00
Cédric Krier f44dbf8ee2 Prepare release sale_shipment_cost-7.0.3
--HG--
branch : 7.0
2024-03-03 13:19:16 +01:00
Maxime Richez 810d800043 Do not enforce empty shipment cost method on cancelled state
Closes #13018
(grafted from af89389ef1162e862980c2f380efc1fd1d760f79)

--HG--
branch : 7.0
2024-02-22 00:06:28 +01:00
Cédric Krier 02c560c60a Increase version number
--HG--
branch : 7.0
2024-01-16 00:17:54 +01:00
Cédric Krier 3429f98276 Prepare release sale_shipment_cost-7.0.2
--HG--
branch : 7.0
2024-01-16 00:17:46 +01:00
Cédric Krier 8574efced0 Group only customer shipment by cost method
The return shipment does not have this field.

Closes #12842
(grafted from 2a6a862914abf8a107923e2c0985fa2ac7600aa2)

--HG--
branch : 7.0
2024-01-06 01:32:52 +01:00
Cédric Krier 5affc34597 Remove shipment cost method on sale without carrier
Since 34a5debdca00 a domain enforce an empty shipment cost method when no
carrier is selected. So former order must be updated to still be valid.

Closes #12753
(grafted from af20d4f7c1de13bf06fabb1010251884b96b80f7)

--HG--
branch : 7.0
2023-12-23 18:42:46 +01:00
Cédric Krier dffe4ae475 Increase version number
--HG--
branch : 7.0
2023-11-17 19:43:10 +01:00
Cédric Krier 61e1dcd2f1 Prepare release sale_shipment_cost-7.0.1
--HG--
branch : 7.0
2023-11-17 19:42:58 +01:00
Cédric Krier ddf4f72c99 Extend grouping fields with a list
4e84027dbc2e updated the grouping fields method to receive the grouped
instance but it did not adapt to the returned type which is a list.

Closes #12718
(grafted from 099eaaf2255b752db61c8c91441e430bf148795a)

--HG--
branch : 7.0
2023-11-08 00:09:37 +01:00
Cédric Krier 6c91d493b6 Increase version number
--HG--
branch : 7.0
2023-10-30 18:49:03 +01:00
Cédric Krier 65f477f731 Prepare release 7.0.0 2023-10-30 18:17:32 +01:00
Cédric Krier c577fad900 Update translations [skip ci] 2023-10-28 14:15:23 +02:00
Cédric Krier 4e010a988f Add support for Python 3.12 2023-10-22 19:40:55 +02:00
Adrià Tarroja Caubet a20253fc41 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
2023-10-22 10:43:36 +02:00
Cédric Krier e2ffc7d981 Do not apply cost sale to cancelled shipments
Closes #12621
2023-10-07 12:04:12 +02:00
Cédric Krier a2ba60730b Set origin on shipment cost invoice line earlier
The origin must be set before calling on_change_product such that module like
account_tax_rule_country can fill the tax rule pattern.

Closes #12507
2023-08-29 14:11:32 +02:00
Cédric Krier 98de8467ce Do not sum empty cost used to create sale shipment cost
Closes #12610
2023-10-02 18:39:14 +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 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 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 1ae7c02f97 Use proper module for message when checking shipment cost for sale quotation
Closes #12458
2023-08-09 23:20:03 +02:00
Cédric Krier adc26533da Add .readthedocs.yaml configuration [skip ci]
This is required by Read the Docs service:
https://blog.readthedocs.com/migrate-configuration-v2/

Closes #12344
2023-08-06 11:06:08 +02:00
Adrià Tarroja Caubet 960c220329 Remove migrations previous to 5.0
Closes #11324
2023-01-19 11:25:25 +01:00
Cédric Krier 1a11e103bf Increase version number 2023-05-01 14:11:22 +02:00
Cédric Krier 1901135502 Prepare release 6.8.0 2023-05-01 13:19:11 +02:00
Cédric Krier 84a2b5e271 Update translations 2023-04-29 10:07:40 +02:00
Cédric Krier 010a51934e Keep quantity of 1 for free shipment cost line
Closes #12128
2023-04-21 16:55:42 +02:00
Cédric Krier fa7c90cbf9 Test shipment cost against None to support 0 value 2023-04-21 16:56:29 +02:00
Cédric Krier b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02:00
Cédric Krier 5cc5a8f672 Update tox.ini to set py311 and remove py37 2023-03-03 00:17:18 +01:00
Nicolas Évrard 039761e061 Remove support for Python 3.7 2023-01-29 20:36:51 +01:00
Nicolas Évrard 777ee10f27 Add support for Python 3.11 2023-01-27 11:02:47 +01:00
Cédric Krier b48e4966d5 Add functions and attribute to handle check access and active records
Closes #11863
2022-12-30 13:56:10 +01:00
Cédric Krier 3e4311eb5e Do not enforce empty shipment cost method for draft sale
As draft sale can be created by other modules, we must put such constraint
when quoting the sale.

Closes #11900
2023-01-03 11:23:03 +01:00
Cédric Krier f832c45b51 Require a carrier to quote sale with shipment cost method
Closes #11985
2023-01-03 11:17:51 +01:00
Cédric Krier 4683fde7ac Make scenario independent of the current day
The fiscal years are created centered on the passed date such that if the
current day change during the execution, the fiscal year is still usable.
Also fiscal year can be created for a range of dates such that it is guarantee
that the dates are in the fiscal year.
And finally remove datetime and dateutil import when they are not used.

Closes #9977
2023-01-01 10:36:03 +01:00