Commit Graph

155 Commits

Author SHA1 Message Date
DavidJForgeFlow
7a74cc250e [IMP] rma: limit state statusbar 2024-05-06 17:07:50 +02:00
Lois Rilo
1dd8eb10c0 [FIX] rma: in multi step routes, only reserve first step
We shoul not force reservation on next steps on a multi step
route, oherwise a inconsistency is generated and the transfers
cannot be processed or cancel so the user gets stuck ("it is
not possible to unreserve more products that you have in stock"
error).
2024-05-06 17:07:50 +02:00
DavidJForgeFlow
fb683c9aa5 [IMP] rma: cancel rma_lines 2024-05-06 17:07:50 +02:00
Florian da Costa
4fe10d788c [FIX] Move some field from onchange to compute fields to avoid issues in views 2024-05-06 17:07:50 +02:00
DavidJForgeFlow
f826845def [14.0][FIX] rma: add stock move in supplier group 2024-05-06 17:07:50 +02:00
Lois Rilo
d53ca9b597 [FIX] rma: remove "Add new line" in RMA group.
This was not the intended way to add RMA lines to a group.
Users are supposed to use the wizards to do so (add from stock
move, add from serial, etc.). Having the option to use "add
new line" was only leading to errors and confusion.
2024-05-06 17:07:50 +02:00
Lois Rilo
c9174c6598 [IMP] rma: print serial/lot number in RMA group report 2024-05-06 17:07:50 +02:00
Lois Rilo
d674b66524 [IMP] rma: order by id desc 2024-05-06 17:07:50 +02:00
Lois Rilo
739f67beca [IMP] rma: add description to rma order and copy it over to new lines 2024-05-06 17:07:50 +02:00
Lois Rilo
5f0f1c1681 [IMP] rma: rma group supplier form view as a inherited view.
The goal is to simplify view defintion and do not duplicate
things, requiring to do view changes in two places.

The same change was done from rma lines some time ago.
2024-05-06 17:07:50 +02:00
Lois Rilo
62d501d020 [FIX] rma: Ensure that configuration on the operation is applied
Without this, some policies are not being copied from the
operation selected when creating new rma line from a rma group.

In v16 this patch and the usage of such onchange can be removed
in favor of (pre)computed stored editable fields for all policies
and configuration in the RMA operation.
2024-05-06 17:07:50 +02:00
Florian da Costa
ea384322b9 [FIX] count produced products going to customer as out pickings 2024-05-06 17:07:50 +02:00
DavidJForgeFlow
3f56e91eb1 [14.0][IMP] rma: add lot/serial in report 2024-05-06 17:07:50 +02:00
AnnaPForgeFlow
5b431b3baf [IMP] rma: add translations 2024-05-06 17:07:50 +02:00
Jordi Ballester Alomar
44b6e62037 [FIX] fix empty parter on rma picking 2024-05-06 17:07:50 +02:00
DavidJForgeFlow
ee797b4347 [14.0][IMP] rma: pass product in create lot 2024-05-06 17:07:50 +02:00
Florian da Costa
258021bdd1 [16.0][MIG] Migrate rma module to v16 2024-05-06 17:07:50 +02:00
Jordi Ballester Alomar
4b1ec13884 [IMP] centralize the logic to get the correct cost of the RMA. 2024-05-06 17:07:50 +02:00
Jordi Ballester Alomar
7112843798 [FIX] include anglo-saxon price unit calculation in refunds.
Otherwise the anglo saxon entries won't be correct.
For example, the Interim (Delivered) account should balance
after receiving and triggering a refund on a customer rma.
2024-05-06 17:07:50 +02:00
Jordi Ballester
38b798e8c9 [IMP] rma_sale: introduce new config settings.
- auto_confirm_rma_sale
- free_of_charge_rma_sale
2024-05-06 17:07:50 +02:00
DavidJForgeFlow
9db7ad8552 [15.0][FIX] rma_sale: fixup of procurement 2024-05-06 17:07:50 +02:00
Stefan Rijnhart
f411c0e3d0 [IMP] rma: prevent the creation of zero qty moves 2024-05-06 17:07:50 +02:00
Florian da Costa
f01f571888 [IMP] Make rma order view cleaner for user
Hide button and fields depending on the policy chosen on the rma line
2024-05-06 17:07:50 +02:00
Florian da Costa
6585b1b995 Hide smart button when empty 2024-05-06 17:07:50 +02:00
Stefan Rijnhart
501418d132 [FIX] rma: improve check on rule selection during procurement
Fixes #274

Thanks to @florian-dacosta for suggesting this approach.
2024-05-06 17:07:50 +02:00
DavidJForgeFlow
7e280881d0 [FIX]rma: remove test_rma dependency to Account 2024-05-06 17:07:50 +02:00
Cas Vissers
cd0b2906bb [IMP] Improve multi-company record rules 2024-05-06 17:07:50 +02:00
Stefan Rijnhart
faa1959d5e [FIX] rma: prevent against warehouse mismatch or missing rules
When creating pickings, ensure that the applied stock rule was taken from
the operation's routes. Otherwise, the default procurement rules for a
warehouse may kick in, creating incoming customer goods not from the customer
location but from the resupply warehouse.
2024-05-06 17:07:50 +02:00
Lois Rilo
747ac243c9 [IMP] rma: add rma lines to group selecting serial numbers 2024-05-06 17:07:50 +02:00
Lois Rilo
079e870522 [IMP] rma: add RMA reference to delivery slip report 2024-05-06 17:07:50 +02:00
Lois Rilo
d62b0188fb [FIX] rma: missing migration scripts and version bump
Those are needed after making some fields company dependent
2024-05-06 17:07:50 +02:00
DavidFIB
8e4532b911 [15.0][FIX/IMP] Make RMA Operation settings company dependent 2024-05-06 17:07:50 +02:00
DavidFIB
71bf52d866 [14.0][FIX/IMP] Make RMA Operation settings company dependent 2024-05-06 17:07:50 +02:00
Andrea
2a3b980dfb [13.0][FIX/IMP] Make RMA Operation settings company dependent 2024-05-06 17:07:50 +02:00
AaronHForgeFlow
c7c6abddf9 [15.0][IMP] Tests for stock valuation
[FIX] rma: rma_custmer_user has no write permissions in partner, so compute method fails.
[IMP] rma: use rma user in tests
[FIX] rma_account: move_line_id field string
[IMP] rma, rma_account, rma_sale, rma_purchase: tests for stock valuation
[FIX] account_move_line_rma_order_line: minor lint, make auto-install
2024-05-06 17:07:50 +02:00
Jordi Ballester
ea4922d283 [IMP] rma: Refactor all rma modules in order to consider using the correct price unit in moves
Otherwise the inventory accounting will be completely wrong.
2024-05-06 17:07:50 +02:00
Florian da Costa
70663f6446 Add missing fields in rma line editable tree in rma group 2024-05-06 17:07:50 +02:00
Florian da Costa
bcfa5a32c2 [FIX] Remove useless/bad wiz_id field in rma_make_picking.wizard item preparation 2024-05-06 17:07:50 +02:00
AaronHForgeFlow
f90e6d3096 [IMP] COPIER UPDATE: black, isort, prettier 2024-05-06 17:07:50 +02:00
Christopher Ormaza
807f88a78d [14.0][FIX] rma: separate stock.move by rma_line_id to fix picking association 2024-05-06 17:07:50 +02:00
Lois Rilo
764139d560 [FIX] rma: do not force reservation on supplier RMA deliveries
* remove code call to unexisting `force_asign`.
* only one model per model file and rename as appropriate.
2024-05-06 17:07:50 +02:00
Jasmin Solanki
d1a9c2a9f4 [IMP] rma: Fix Route View 2024-05-06 17:07:50 +02:00
Christopher Ormaza
2d18bbaacd [15.0][ADD] Mass action for request approval RMA order line 2024-05-06 17:07:50 +02:00
Christopher Ormaza
c83918400d [FIX] rma: add lot to pickings created from wizard on RMA lines 2024-05-06 17:07:50 +02:00
Christopher Ormaza
dfd91f9ba4 [IMP] rma, rma_sale: added select all, messages for UX 2024-05-06 17:07:50 +02:00
Christopher Ormaza
9845c0f99d [IMP] rma: Added serial/lot selection on from stock move wizard on rma groups
- added restriction to approve rma with product tracking on serial, should be only one to receive
2024-05-06 17:07:50 +02:00
Jordi Ballester
9d75d1207b [FIX] rma: compute out_shipment_count correctly. Add test cases 2024-05-06 17:07:50 +02:00
Jordi Ballester
964248f089 [fix] rma: improve logic to count in and out pickings
In the scenario where we use a 2 or 3 step receipts or pickings
we want to make sure that we correctly count and classify the pickings.
2024-05-06 17:07:50 +02:00
Jordi Ballester
08b55799ef [fix] rma: when using 2 step receipt or delivery, don't count double 2024-05-06 17:07:50 +02:00
AaronHForgeFlow
b2e0663126 [14.0][IMP]rma: make operation editable after approved
* remove also validation error when setting the rma to draft where there are done pickings
2024-05-06 17:07:50 +02:00