Commit Graph
120 Commits
Author SHA1 Message Date
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
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 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 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
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
Cédric Krier 3dac1d819d Add a button to create invoices manually from purchase
#12412
2023-07-19 11:26:33 +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
Cédric Krier 84b2c346b5 Remove unnecessary group on menu
Menu with an action window do not anymore to be hidden by group for access
since #12322
2023-06-23 14:51:59 +02:00
Cédric Krier f2ebadf1da Test company header is not empty before using its id
Closes #12363
2023-07-18 22:58:23 +02:00
Cédric Krier aa1475a467 Use boolean value when enforcing value to edit delivery date of purchase line
The clients always convert Boolean field values into boolean so the domain
validation against None value is always failing.

Closes #12306
2023-06-05 15:18:11 +02:00
Cédric Krier b0590200db Set invoice journal only when type is changed
Using on_change_with does not work correctly for editable field because the
value may be changed when the user does not expect it.
2023-04-29 12:57:57 +02:00
Cédric Krier dc3afbd016 Define process delay per sale and purchase
Closes #12209
2023-04-12 13:42:18 +02:00
Cédric Krier 5335a2022d Convert sum attribute into boolean 2023-05-06 14:25:22 +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 5c3f4e503e Use fixed location type to compute quantity to invoice for sale and purchase
Using the computed location to get the expected type is not reliable because
for return order, the location can be of different type and the stock move can
change of location type.

Closes #12203
2023-04-13 17:45:09 +02:00
Cédric Krier a1538856b7 Fill taxes from default account for sale and purchase line without product
Closes #2479
2023-04-09 19:58:49 +02:00
Cédric Krier b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02:00
Cédric Krier 9ad95c58ed Log modification of sale and purchase header via wizard 2023-02-08 19:05:00 +01:00
Cédric Krier ea62dea8da Log transition of invoice and shipment states of sale and purchase 2023-02-08 19:04:42 +01:00
Cédric Krier 810780a789 Remove purchasable constraint on product when quantity is negative
Closes #9057
2023-03-23 17:37:34 +01:00
Cédric Krier ac4d4a7fbb Use multivalue API to access product multivalue fields
Closes #7474
2023-03-19 19:57:30 +01:00
Cédric Krier e20b7a15ce Use instances in skip sets instead of id 2023-03-16 13:31:20 +01:00
Cédric Krier 881cbcfb2c Rename moves exception and simplify computation 2023-03-12 22:11:34 +01:00
Cédric Krier 1b2113addc Return purchase with a single copy call 2023-03-12 22:48:27 +01:00
Cédric Krier 4dc58e30e9 Replace _parent_ expression with direct field on sale and purchase line
Since #12003 lines can be edited outside the parent form so expression should
not rely on _parent_.

Closes #12109
2023-02-27 16:37:11 +01:00
Cédric Krier ba701d5a38 Remove invalid fields from default copy 2023-03-15 16:11:51 +01:00
Cédric Krier fbe77f6a39 Allow to extend the invoices list to compute invoice state of sale and purchase
So advance payment invoices can be included in the original computation
instead of duplicating the computation since changeset 1a763ffe4a66 renamed
waiting into pending and add more states.
2023-03-16 13:22:19 +01:00
Maxime Richez f1a2f77405 Add partial shipment state
Closes #12004
2023-03-13 11:30:22 +01:00
Maxime Richez 146dd5fbc3 Add pending, awaiting payement and partially paid to invoice state
Closes #12005
2023-01-23 15:22:56 +01:00
Cédric Krier 5cc5a8f672 Update tox.ini to set py311 and remove py37 2023-03-03 00:17:18 +01:00
Cédric Krier d2a3a8072c Enforce same type between sale, purchase line and invoice line origin 2023-02-11 19:20:49 +01:00
Cédric Krier 012334d657 Clear fields available only on sale or purchase line of type line 2023-02-11 19:20:03 +01:00
Cédric Krier f429332d97 Use right boolean operator in composite domain of searcher
When the clause is negative, it must return an AND-ed domain instead of OR-ed.
2023-02-16 10:39:30 +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
Maxime Richez 10466a9936 Prevent deletion of payment terms in use
Closes #12085
2023-02-21 12:55:12 +01:00
Maxime Richez ad5ed8cb5f Display stock moves and invoice lines in sale and purchase lines form
Closes #12003
2023-01-27 14:38:36 +01:00
Cédric Krier 84514c49de Add relates to sale and purchase lines from party and product 2023-01-26 15:11:21 +01:00
Cédric Krier 0b159befc6 Regroup purchase and sale relates
By testing active_model in the domain, it is possible to simplify the number
of relate to define.
Also for relate from party, it gives more information to the user to display
the number of pending and done.
2023-01-26 15:08:56 +01:00
Cédric Krier 5eb185ab15 Prevent creating line for sale or purchase not in draft 2023-01-26 15:03:41 +01:00