Commit Graph
522 Commits
Author SHA1 Message Date
Nicolas Évrard 777ee10f27 Add support for Python 3.11 2023-01-27 11:02:47 +01:00
Nicolas Évrard f5d2b60d08 Synchronize sale_promotion_coupon_payment's tox.ini 2023-01-29 17:44:21 +01:00
Òscar Queraltó Aguilera 8e305c7dc3 Ignore cancelled moves to calculate productions cost
Closes #12093
2023-02-24 12:09:39 +00:00
Maxime Richez 10466a9936 Prevent deletion of payment terms in use
Closes #12085
2023-02-21 12:55:12 +01:00
Cédric Krier 16883f9579 Enforce same company for account and invoice line in Spanish SII tests
Closes #12062
2023-02-19 21:00:14 +01:00
Maxime Richez 2695deb3c5 Add history on party tax identifier
Closes #12095
2023-02-20 16:56:51 +01:00
Adrià Tarroja Caubet 8d90322512 Do not copy production lead times of product
As the BoMs are not copied and the production lead times may have a link to
the product BoM, we should not copy them.

Closes #12104
2023-02-22 09:49:07 +01:00
Sergi Almacellas Abellana f471e81c11 Set timezone in product cost history scenario 2023-02-22 08:59:58 +01:00
Sergi Almacellas Abellana 08fec3a29e Catch Overflow error when converting datetime to company timestamp
Closes #11999
2023-02-15 14:26:59 +01:00
Cédric Krier 88aa08904c Replace same account check by domain between invoice, lines and taxes
Closes #7641
2023-02-10 16:06:23 +01:00
Cédric Krier 8eee0bce1b Remove non-standard work day unit
Since 5b0f99f81e32 it is not possible to customize rate and factor of unit
which makes such non-standard unit more an issue than a feature.

Closes #12071
2023-02-07 23:03:17 +01:00
Cédric Krier dccb78a73c Require account type when parent has one
The domain added by c39ad0bef61e is not enough to ensure type coherence
because if the type is None, the domain is still valid.
2023-02-06 19:02:27 +01:00
Cédric Krier ec2af67d42 Remove type from parent when children have different types
Closes #12070
2023-02-06 19:01:17 +01:00
Cédric Krier f510517417 Include destination name and dates to forecast record name
Closes #12064
2023-02-05 13:21:09 +01:00
Dimitrios Moustos bf2a769137 Add energy category and units 2023-02-19 13:30:28 +01:00
Cédric Krier a0c723970f Test if Shopify attribute is not empty before using it
Shopify seems to have changed from not setting empty attributes to setting
them empty.

Closes #12097
2023-02-17 12:07:43 +01:00
Adrià Tarroja Caubet 5375918428 Include in credit amount only invoice lines of type line
Closes #12076
2023-02-14 12:48:01 +01:00
Cédric Krier 7d92024c63 Use same design to set extra than to set shipment cost 2023-02-12 23:03:15 +01:00
Cédric Krier be35a722ea Reset sale state to draft before adding or deleting extra lines
Closes #12082
2023-02-12 22:59:37 +01:00
Cédric Krier 147140ebd1 Reload screen after creating purchase from purchase request
This way the user see that the selected purchase requests have been purchased
as they are no longer in the draft tab.
2023-02-09 11:06:42 +01:00
Sergi Almacellas Abellana 1f398f071e Use number and reference for subscription rec name 2023-02-15 17:43:00 +01:00
Sergio Hervas 472b4b0aa7 Display and order by planned date when searching incoming moves from supplier shipment
Closes #12060
2023-02-13 14:30:29 +01:00
Cédric Krier 9f18ee3aea Replace shipment_type by Shipment in sale grouping method
Since the introduction in 344956d44189 of the _get_shipment_sale method, it is
the shipment class that is passed as argument and never the shipment type.
2023-02-09 11:12:20 +01:00
Cédric Krier 5105b1cdb4 Support having a price without weight
Closes #12055
2023-01-30 17:37:12 +01:00
Nicolas Évrard a2662386c3 Save moves before reconciling the lines
The previous organization of the code made it less efficient to save the move
before reconciling the lines which should the logical order.
2023-01-29 01:08:22 +01:00
Nicolas Évrard ab020a78e8 Reconcile the zero lines after saving moves 2023-01-23 17:05:55 +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 c374627a23 Notify for duplicate identifier
Closes #12049
2023-01-30 00:11:21 +01:00
José Antonio Díaz Miralles e814732e9c Sort purchase request by purchase and line key before create purchases
This is needed to have requests ordered also when grouping them into purchase
line.

Closes #12073
2023-02-10 21:34:59 +01:00
Cédric Krier cb59e11ad4 Add reversal option when cancelling move
Closes #5180
2023-01-27 01:06:15 +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
Cédric Krier e0182d9ecb Do not allow to create line or tax on invoice not in draft
Adding new line or tax should also be forbidden for validated state.
2023-01-26 15:01:10 +01:00
Cédric Krier 1f8016700d Add cumulative balance to payable/receivable lines
Closes #11994
2023-01-06 00:16:06 +01:00
Cédric Krier f438072cb5 Mute reconciled payable/receivable lines
Closes #10951
2023-01-06 18:01:36 +01:00
Cédric Krier c7790731ef Add optional column on tree view
Closes #10989
2023-01-06 18:00:27 +01:00
Cédric Krier eeb0bc72d4 Apply sphinx-lint to documentation 2023-02-04 21:02:37 +01:00
Cédric Krier ff4e96a0c7 Remove aliases from grouped columns of move line when used in "group by"
Closes #11993
2023-01-05 17:26:36 +01:00
Cédric Krier 61324ec547 Replace lstrip usage to remove field name from clause operand
Closes #12041
2023-01-29 00:46:36 +01:00
Sergi Almacellas Abellana 33aa8bad09 Limit tax kind of invoice tax based on invoice type 2023-01-27 11:55:05 +01:00
Cédric Krier e90e274a82 Make moves_drop invisible when moves_drop is empty 2023-01-28 15:05:02 +01:00
Cédric Krier 4639991356 Remove readonly states for account type in budget line
There is no lines field on budget line.
2023-01-27 14:02:57 +01:00
Nicolas Évrard 0d679effe2 Warn when cancelling a move related to an invoice
Closes #4981
2023-02-02 18:50:26 +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 68753ff402 Run action from button with proteus 2023-01-17 14:39:18 +01:00
Cédric Krier 6edf1f9943 Use different pattern for sale extra and sale extra line
Also get_pattern functions are removed in favor of parameters in get_lines.

Closes #4746
2023-01-22 01:07:02 +01:00
Cédric Krier 349dd77ae5 Add barcode function on product identifier 2022-12-26 22:32:23 +01:00
Cédric Krier 7010cd1717 Lock journal period when automatically creating one
This avoids uniqueness constraint error in case of concurrent creation.

Closes #10747
2023-01-21 18:47:49 +01:00
Cédric Krier a228bb153b Cancel Stripe Setup Intent using the right id
Closes #12031
2023-01-23 16:24:14 +01:00