Commit Graph

20 Commits

Author SHA1 Message Date
Pedro M. Baeza
d5b9b0c6cf [IMP] rma_sale: Domains performance
For avoiding a big list of IDs being transferred when no sales order
is selected on the RMA, we have changed domains to make use of the
possibility of pyjs expressions allowed in the domains.

No ternary operators nor list sums are allowed in pyjs, but using a
combination of allowed IDs with a controlled length of values + and/or
operators to switch domains is enough for having the right performance
and avoid to depend on other modules like web_domain_field.
2022-12-09 16:09:42 +01:00
Víctor Martínez
53666daf8c [FIX] rma_sale: Filter done pickings and done moves
TT39089
2022-09-21 15:38:55 +02:00
Giovanni
35cd0d8180 [14.0][FIX] rma_sale, fix action permission issues. 2022-04-26 16:49:43 +02:00
Chafique
0d98089699 [14.0][MIG] rma_sale module 2021-09-03 13:13:40 +02:00
Chafique
8afb31c883 [IMP] rma_sale: black, isort, prettier 2021-09-03 12:42:24 +02:00
david
35df5a65af [IMP] rma_sale: portal rma request single page view
Now it's possible to configure if the portal RMA request form is loaded
in a popup or in a single page.

In that page, we can add custom blocks (if the website is installed) a
customize the form text.

In this commit, we also add the possibility to extend the form view to allow
custom fields that will show up in the RMA description.

TT29670
2021-09-03 12:35:19 +02:00
Pedro M. Baeza
e74bd55be7 [FIX] rma: pre-commit 2021-09-03 12:35:19 +02:00
david
85bbd9ca7d [FIX] rma_sale: chained returns
Using move_dest_ids we can easily end in an infinite loop situation as
the return of the return of the return ends with some original moves on
in move_dest_ids. We must ensure to drop them to avoid the infinite
loop.

TT29886
2021-09-03 12:35:19 +02:00
david
77d166f1f4 [FIX] rma_sale: take product from move 2021-09-03 12:35:18 +02:00
david
3c7beb3fe0 [FIX] rma_sale: recurrent RMA
If a product was already in an RMA in the past, we should be able to
place another RMA in the future.
2021-09-03 12:35:18 +02:00
david
e2bfab1c83 [IMP] rma_sale: prepare kits integration
When a sale line has a phantom product (mrp kits) the RMA would not be
possible as the wizard couldn't pair the components moves with the
product in the line. With this approach, we can at least return the
spare components of the original kit line.

We also need some hooks to intervine in the main methods, like in
invoicing.
2021-09-03 12:35:18 +02:00
david
a9b0fa0e5e [FIX] rma_sale: product in multiple lines
If there are several stock moves with the same product in the picking we
won't be able to make the RMA
2021-09-03 12:35:18 +02:00
Ernesto Tejeda
4a9259b23b [MIG] rma_sale: Migration to 13.0 2021-09-03 12:35:18 +02:00
Ernesto Tejeda
0cbca17df5 [IMP] rma_sale: black, isort, prettier 2021-09-03 12:35:18 +02:00
Pedro M. Baeza
612b8b8923 [FIX] rma_sale: Show directly form on 1 RMA
Fine-tune of 9a25d6, as for one record, the domain is not applied, but the list is
shown.
2021-09-03 12:35:18 +02:00
Ernesto Tejeda
caad7a1e54 [FIX] rma_sale: show related RMAs without default filters
rma_sale 12.0.1.5.1
2021-09-03 12:35:18 +02:00
Pedro M. Baeza
873bc9fb21 [FIX+IMP] rma_sale: Proper dependency + propagate salesman
- Proper dependency is `sale_stock`, not `sale`, as we are using some fields added
  by this module.
- Propagate salesman from sales order when available.

TT25525

rma_sale 12.0.1.4.1
2021-09-03 12:35:18 +02:00
david
5dbb855535 [IMP] rma_sale: portal improvents
- Now it's possible to open several RMAs in a sale order from the portal
- A new comment button has been added to allow the portal user to enter
relevant information like serial numbers o issue description.
- If the requested operation isn't set no RMA will be opened
- The RMA product qty is now a numeric control with limits according to
the qty available to return

[FIX] rma,rma_sale: fix linter errors

[UPD] Update rma_sale.pot

rma_sale 12.0.1.4.0

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: rma-12.0/rma-12.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-rma_sale/
2021-09-03 12:35:18 +02:00
Ernesto Tejeda
55ce8daed4 [FIX+IMP] rma, rma_sale: fix bugs and add improvements
- Fix thrown error when trying to download a picking from the portal.
- Add the hook method to prepare RMA values ​​from the return pick wizard.
- Add the access rule for portal users.
- Show the portal 'Request RMAs' button on the sales page only to users
related to the sales order.

[UPD] Update rma_sale.pot

rma_sale 12.0.1.3.0

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: rma-12.0/rma-12.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-rma_sale/
2021-09-03 12:35:18 +02:00
Ernesto Tejeda
1094633127 [ADD] rma_sale: new module
[UPD] Update rma_sale.pot

[ADD] icon.png
2021-09-03 12:35:18 +02:00