Commit Graph
1021 Commits
Author SHA1 Message Date
Maxime Richez b6db068130 Prevent changing party, template and product on product supplier
Closes #12607
2023-10-26 22:53:18 +02:00
Maxime Richez 5774bd2c32 Prevent changing party, template and product on product customer
Closes #12607
2023-10-26 22:52:55 +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 8e8cd1274e Update existing initiator ID from 'es_nif' to 'es_vat'
Since 5493c9eca111 the identifiers use the vat alias.

Closes #12624
2023-10-21 15:43:14 +02:00
Cédric Krier ff079187c5 Deduce from credit amount only sales from the user's company
Since #4080 the record rules are no more enforced on getter of Function
fields.

Closes #12586
2023-10-21 13:08:50 +02:00
Cédric Krier d10a47f7d1 Do not fail when reconciling an empty list
Closes #12626
2023-10-21 15:46:53 +02:00
Cédric Krier 993586497f Do not test active clause of dunning being in a set
The clause may contain unhashable types.

Closes #12590
2023-10-21 14:29:59 +02:00
Cédric Krier ce75be407a Allow to search on default UoM of stock lot
Since e49aaf8553e1, default UoM of "Lots by Locations" has a searcher using
the default UoM of the stock lot.

Closes #12583
2023-10-21 01:03:21 +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 0f145266e9 Defer invoice line only once
The post method can be called multiple times for an invoice by process but
only one deferral is allowed by line.
Also the initial draft deferral may be delete in case of mistake so we must
not create automatically a new one later.

Closes #12567
2023-10-21 00:48:14 +02:00
Cédric Krier 39d419259c Do not fail to sum cost when move has not cost price for allocation by cost
Since b1d0590ca501 set_shipment_cost can be called on shipment that are not
yet done.

Closes #12643
2023-10-13 15:07:29 +02:00
Cédric Krier 4e010a988f Add support for Python 3.12 2023-10-22 19:40:55 +02:00
Cédric Krier 2231ffc366 Cancel and recreate shipment after testing over shipping
The first shipment is already picked so it can not be reset to draft to update
the inventory moves.

Closes #12661
2023-10-24 10:25:32 +02:00
Sergi Almacellas Abellana 3f97d298b0 Add detail for each tax in purchase intracomunitary tax rule
Closes #12654
2023-10-19 12:36:33 +02:00
Adrià Tarroja Caubet ac1ebd441d Add missing workflow transition to open method
Closes #12658
2023-10-22 17:25:25 +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
Sergi Almacellas Abellana 02fb1de0fd Set gift card flag on periodificationes a corto plazo types of Spanish chart
Closes #12593
2023-10-21 14:43:35 +02:00
Cédric Krier e64dbbefa9 Test account reconcile scenario without party required 2023-10-11 18:35:03 +02:00
Cédric Krier caf654f1ec Set party clause to None when retrieve currencies to reconcile without party
Closes #12601
2023-10-11 18:34:32 +02:00
Cédric Krier 7976c25985 Add parent_action as depends on event and on activity fields
It is needed otherwise non editable view displaying those fields will set the
value to None thanks to the domain inversion.

Closes #12646
2023-10-16 16:17:05 +02:00
Maxime Richez 37febc448c Remove duplicate party on invoice lines list
Since bd7b1e764e0b, party and description are added to invoice line list.

Closes #12638
2023-10-16 16:55:58 +02:00
Cédric Krier 2d88ad118c Use explicit Stripe API version
Since Stripe v6 the API version is set by the library instead of using the
configured default.

Closes #12641
2023-10-12 20:26:35 +02:00
Sergi Almacellas Abellana d6c69503e6 Add access rules for customs models
Closes #12635
2023-10-15 20:44:10 +02:00
Cédric Krier f8a22e4fa6 Update link to CODA standard 2023-10-01 11:30:14 +02:00
Cédric Krier 57abf56b87 Use list comprehension to filter internal order point
It prevents to make a query to the database.
2023-10-07 19:53:00 +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 33be950d8b Use sale line unit when invoice line has no unit
Closes #12462
2023-10-09 18:31:27 +02:00
Cédric Krier 9cff1e0b62 Do not compute account party for general ledger line without party
Closes #12570
2023-10-05 23:18:51 +02:00
Cédric Krier 2d6c34db34 Always fill product and template of cost price revision
If an error is raised when computing the new cost price, the management tries
to display the product name. So the product and the template must be set
explicitly because the revision is not yet saved in the database.

Closes #12616
2023-10-05 13:06:22 +02:00
Cédric Krier b3786c07e3 Add missing button decorator to POS cash transfer
Closes #12623
2023-10-07 20:05:38 +02:00
Cédric Krier cc53f0bd4b Make purchase request description always readonly
The changeset 3a0931d04904 added a readonly states but the description is a
substitut to the product so it should be readonly like the product.

Closes #12555
2023-10-07 19:22:06 +02:00
Cédric Krier a82578054c Do not allow user to create or delete payment group
The payment groups are only created by the processing of payments.
2023-09-04 16:30:47 +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 b037f93b77 Prevent changing company of invoice with lines filled
Closes #12620
2023-10-07 08:47:30 +02:00
Cédric Krier b356dc2276 Search for invoice and purchase lines from the same company as the invoice 2023-10-06 15:05:47 +02:00
Cédric Krier 88d91e9b92 Assign id instead of instance when filling invoice from document incoming
This ensures that the instances have the right context from the field
definition.

Closes #12619
2023-10-06 15:04:39 +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 120c0f745e Add scenario to test default taxes for sale without product 2023-10-04 17:18:23 +02:00
Cédric Krier 93d8d997df Compute taxes when sale is changed on line
Closes #12612
2023-10-04 17:17:51 +02:00
Cédric Krier 639ead79a6 Add number and reference fields to ShipmentMixin 2023-10-07 17:17:32 +02:00
Sergi Almacellas Abellana a22de3c794 Make shipment reference not readonly
Closes #11879
2023-05-17 09:04:54 +02:00
Cédric Krier b19f1b51e1 Add shipping reference in replacement of reference 2023-10-07 17:27:42 +02:00
Maxime Richez ea052f9930 Set inventory moves readonly for picked customer shipment
Closes #12613
2023-10-05 13:33:29 +02:00
Maxime Richez 76921bfccc Add menu entry to list warehouses
Closes #12608
2023-10-09 12:43:39 +02:00
Maxime Richez 0416811b33 Grant read access for account group to stock move
Closes #12602
2023-10-02 13:39:00 +02:00
Cédric Krier 6714a94b28 Autocomplete party from European VAT number 2023-09-30 16:14:33 +02:00
Cédric Krier 4bdad83247 Use vat alias for party identifier 2023-09-26 23:46:13 +02:00