Commit Graph
115 Commits
Author SHA1 Message Date
Cédric Krier ce530c6c0b Remove custom table names 2023-12-26 12:18:00 +01:00
Cédric Krier 9223f374bf Use same sign when deducing ignored stock moves of remaining quantity to be paid
When the quantity of the line is negative, the quantity of the ignored stock
move must be added instead of subtracted.

Closes #12988
2024-02-02 13:48:12 +01:00
Cédric Krier 86b9b16a95 Add product deactivable mixins
Those include the product and template active field in the expression when
converting domain on active field.

Closes #12955
2024-01-24 10:16:04 +01:00
Cédric Krier a8ee857681 Compute name of the product for stock move
So we can customize the product name to use the customer or supplier name.

Closes #12893
2024-01-04 23:54:49 +01:00
Cédric Krier b4608428fb Compute name of the product for sale, purchase and invoice lines
Instead of having the code in the report templates, we use a property that can
be extended without updating the template.

Closes #12892
2024-01-04 23:55:09 +01:00
Cédric Krier bfbab59ebf Use usage from context for default contact mechanism on party 2024-01-04 18:48:14 +01:00
Cédric Krier 5181591ed7 Use template substitution for company header/footer
Closes #12699
2024-01-04 18:55:06 +01:00
Sergi Almacellas Abellana 79af25cee7 Fix typo in purchase change unit of measure error message 2024-01-30 15:51:16 +01:00
Cédric Krier 69bdce8b29 Use include directive for subdirectory documentation
Closes #12822
2023-12-24 10:48:07 +01:00
Cédric Krier 40b8cf0eca Support linkcheck ignore per module documentation
If a linkcheck_ignore.json exists in the doc folder, it is loaded to extend
the linkcheck_ignore configuration of Sphinx.
2024-01-01 13:43:49 +01:00
Cédric Krier d3e086aace Order cancelled document without number last
Closes #12899
2024-01-05 15:33:57 +01:00
Cédric Krier 406092be4d Check doctest files
They are converted to python files before running checks.
2024-01-14 19:21:56 +01:00
Cédric Krier b913ad45d8 Add assert methods to test tools
Closes #12879
2023-12-29 19:02:08 +01:00
Cédric Krier f8e095826d Do not translate quantity placeholder in sale and purchase messages
Closes #12919
2024-01-10 14:15:52 +01:00
Cédric Krier 61e1b18e76 Compute remaining quantity of sale and purchase order following their method
Ignored quantities must be deduced from the remaining quantity.

Closes #12698
2023-12-17 17:07:41 +01:00
Cédric Krier 8d9156df84 Add ondelete RESTRICT on Many2One of party ValueMixin
Closes #12809
2023-12-07 23:24:37 +01:00
Cédric Krier 0d625d4010 Remove usage of set_user to skip check access
Since ce8d7a19766a the access rule are enforced only if check access is set.
2023-12-01 21:14:37 +01:00
Cédric Krier 7e9d69f07f Set state to done when all lines of sale or purchase are cancelled
So when the shipment and invoice state are None and all lines have an 100%
progress, then the order should be considered as done.

Closes #12698
2023-11-01 16:37:23 +01:00
Cédric Krier da3c68d0c0 Add invoice progress on sale and purchase line 2023-11-01 16:34:42 +01:00
Cédric Krier 92a3ddb9ee Set shipment state of sale and purchase to None when all stock moves are cancelled
Closes #12697
2023-11-01 16:32:41 +01:00
Cédric Krier 38da6a0451 Increase version number 2023-10-30 18:51:13 +01:00
Cédric Krier 65f477f731 Prepare release 7.0.0 2023-10-30 18:17:32 +01:00
Cédric Krier 76c00d3133 Update amount when changing unit or taxes of purchase line
Closes #12648
2023-10-29 14:23:34 +01:00
Cédric Krier c577fad900 Update translations [skip ci] 2023-10-28 14:15:23 +02:00
Maxime Richez b6db068130 Prevent changing party, template and product on product supplier
Closes #12607
2023-10-26 22:53:18 +02:00
Cédric Krier 88edde8e69 Depend on product supplier unit to compute unit on price
The initial implementation 6a6b4ef53946 wrongly define the depends for the
function.

Closes #12653
2023-10-22 12:37:04 +02:00
Cédric Krier cf0b20da58 Do not change line type when calling on_change_product
The wizard to modify header calls on_change_product on all lines but their
type must not change.

Closes #12633
2023-10-22 10:36:20 +02:00
Cédric Krier 420e0a48d6 Add pairwise_longest tools 2023-10-18 23:11:07 +02:00
Cédric Krier 7e2c1f8cbd Do not raise StopIteration when calling pairwise with empty iterable
Closes #12652
2023-10-18 18:28:04 +02:00
Cédric Krier 4e010a988f Add support for Python 3.12 2023-10-22 19:40:55 +02:00
Cédric Krier e2e05b146c Use purchase line unit when invoice line has no unit
Closes #12462
2023-10-09 18:31:37 +02:00
Cédric Krier 83d817309c Add scenario to test default taxes for purchase without product 2023-10-04 17:19:01 +02:00
Cédric Krier bf71a702c9 Compute taxes when purchase is changed on line
Closes #12612
2023-10-04 17:18:47 +02:00
Cédric Krier 66e460b97d Do not consider purchase as done when invoice or shipment state are none
If there are still line to invoice or to receive, the purchase should not be
done.

Closes #12594
2023-09-27 12:30:12 +02:00
Cédric Krier 96a24bcaf6 Remove extra button group access
Since ab05d05bb811 there is no need to have access defined on button if they
are the same as the write access on the model.

Closes #12578
2023-09-20 09:45:20 +02:00
Cédric Krier bdb43b84b2 Remove trailing comma on time_series definition on purchase reporting per product
Closes #12605
2023-10-02 09:44:26 +02:00
Cédric Krier 10525611df Add warning when receiving too much goods from purchase
Closes #12521
2023-08-24 18:18:15 +02:00
Cédric Krier 4268b22ad2 Require unit price only for confirmed purchase
This allows to send quotation to supplier without prices and fill them when
the quotation is received.

Closes #12498
2023-08-17 19:19:51 +02:00
Cédric Krier c5a3340851 Update taxes when create invoices 2023-07-25 15:34:01 +02:00
Cédric Krier a20b805f16 Store original planned date of stock move and compute delay 2023-09-10 21:28:51 +02:00
Cédric Krier ec93032df8 Restore get purchase unit price
2f25450e11f6 removes it but it is needed for purchase_price_list module.
2023-09-24 16:49:52 +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 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 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 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