Commit Graph

176 Commits

Author SHA1 Message Date
Francesco Foresti
23e95ca2e0 Added translation using Weblate (Italian) 2023-08-29 20:04:57 +02:00
Pedro Castro Silva
d4794a3fce Added translation using Weblate (Portuguese)
Currently translated at 100.0% (79 of 79 strings)

Translation: rma-14.0/rma-14.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-14-0/rma-14-0-rma_sale/pt/
2023-08-29 20:04:57 +02:00
Sébastien BEAU
dfb9c20919 [FIX] fix filter rma location based on the sale order company 2023-08-29 20:04:57 +02:00
Chafique
1b470773f9 [14.0][MIG] rma_sale module 2023-08-29 20:04:57 +02:00
Chafique
2cab64f4e7 [IMP] rma_sale: black, isort, prettier 2023-08-29 20:04:57 +02:00
david
66c9fc1b7b [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
2023-08-29 20:04:57 +02:00
Pedro M. Baeza
7fe4109069 [FIX] rma: pre-commit 2023-08-29 20:04:57 +02:00
david
0b66845ad8 [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
2023-08-29 20:04:57 +02:00
david
d4d724f7c2 [FIX] rma_sale: view id 2023-08-29 20:04:57 +02:00
david
8b9dbd38cd [FIX] rma_sale: take product from move 2023-08-29 20:04:57 +02:00
david
12fd6cb814 [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.
2023-08-29 20:04:57 +02:00
SilvioGregorini
48cec57368 [FIX] rma_sale: fix CacheError in _prepare_rma_values()
Lesser fix for sale.order.line.rma.wizard methods.
When method '_prepare_rma_values' was called upon records where field 'picking_id' was empty, Odoo raised a CacheError when trying to access field 'move_id'.
That happened because computed method '_compute_move_id' was not assigning a proper value to such field when 'picking_id' was empty.
Once the computed method is fixed (by simply assigning 'False' as 'move_id' value when no picking is set), the CacheError is solved.
2023-08-29 20:04:57 +02:00
SilvioGregorini
f4bca10480 [FIX] rma_sale: fix wrong values for RMA creation
Lesser fix for creating RMA from website.
Current values will break any custom behaviour because Many2one fields are set using strings instead of integer (IDs).
2023-08-29 20:04:57 +02:00
david
773a443e80 [IMP] rma, rma_sale: shipping address
Allow to set the desired shipping address where the goods must be
returned after the RMA is processed.
2023-08-29 20:04:57 +02:00
david
de75501cc5 [IMP] rma_sale: portal ux
When the user selects an operation, the comment shows up so the customer
doesn't forget to enter his comments
2023-08-29 20:04:57 +02:00
david
acca40197b [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.
2023-08-29 20:04:57 +02:00
Ernesto Tejeda
33c456a294 [FIX] rma_sale: Request RMA from SO without picking from portal 2023-08-29 20:04:56 +02:00
david
90964175ad [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
2023-08-29 20:04:56 +02:00
Ernesto Tejeda
7b3f7de9dc [IMP] *rma*: some improvements 2023-08-29 20:04:56 +02:00
Ernesto Tejeda
81fe8d6c07 [IMP] *rma*: Avoid RMAs of kits until rma_mrp is installed 2023-08-29 20:04:56 +02:00
Bosd
08a41463ce Added translation using Weblate (Dutch)
Currently translated at 61.9% (39 of 63 strings)

Translation: rma-13.0/rma-13.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma_sale/nl/
2023-08-29 20:04:52 +02:00
Dorin Hongu
acab23664c Added translation using Weblate (Romanian)
Currently translated at 100.0% (63 of 63 strings)

Translation: rma-13.0/rma-13.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma_sale/ro/
2023-08-29 20:04:45 +02:00
Ernesto Tejeda
132f877db9 [MIG] rma_sale: Migration to 13.0 2023-08-29 20:04:45 +02:00
Ernesto Tejeda
1267c92b72 [IMP] rma_sale: black, isort, prettier 2023-08-29 20:01:04 +02:00
Pedro M. Baeza
fbabf8a456 [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.
2023-08-29 20:01:04 +02:00
Ernesto Tejeda
8791196a81 [FIX] rma_sale: show related RMAs without default filters
rma_sale 12.0.1.5.1
2023-08-29 20:01:04 +02:00
david
2b5b82e4f8 [FIX+IMP] rma: usability + Translated using Weblate (Spanish)
[FIX+IMP] rma: usability

* IMP - Now the description will be an html son we can show rich styles
in the customers report.
* FIX - On locked sale orders it was need to unlock them to be able to open an RMA.
* IMP - Make the description label visible in the backend form so the
user can easily spot it.
* IMP - Added date and deadline filters.
* IMP - Added pending RMAs filter.
* IMP - Added late RMAs filter.
* IMP - Added danger decoration in tree view

rma_sale 12.0.1.5.0

Translated using Weblate (Spanish)

Currently translated at 100.0% (62 of 62 strings)

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/es/
2023-08-29 20:01:04 +02:00
Pedro M. Baeza
bad96142e0 [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
2023-08-29 20:01:04 +02:00
david
0405519927 [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/
2023-08-29 20:01:04 +02:00
Pedro M. Baeza
21ec3b93bd Translated using Weblate (Spanish)
Currently translated at 81.5% (44 of 54 strings)

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/es/
2023-08-29 20:01:04 +02:00
Ernesto Tejeda
ab83dfd725 [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/
2023-08-29 20:01:04 +02:00
david
10689d9bcf [FIX+IMP] rma: views permissions + portal permissions + teams flow
[FIX] rma: views permissions

Regular users don't have permissions to rma models, so we should avoid
loading views that lead to permission errors.

TT24986

rma_sale 12.0.1.1.0

[FIX] rma_sale: portal permissions

Some operations need to be sudoed to be reachable by the portal user

[UPD] Update rma_sale.pot

rma_sale 12.0.1.1.1

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/

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/

[IMP] rma: teams flow

- If no RMA Team is set, we'll assign a default one to the new RMA.
- A sequence is now used to search for the top team and assign it.
- No default user is assigned when it's not in the context (i.e. portal
rmas).

[UPD] Update rma_sale.pot

rma_sale 12.0.1.2.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/
2023-08-29 20:01:04 +02:00
Ernesto Tejeda
61e27881e1 [FIX] rma_sale: fix expected single record error in tests.
rma_sale 12.0.1.0.1

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/
2023-08-29 20:01:04 +02:00
Fernando Colus
093c482048 Added translation using Weblate (Portuguese (Brazil)) 2023-08-29 20:01:04 +02:00
Ernesto Tejeda
bf9003534e [ADD] rma_sale: new module
[UPD] Update rma_sale.pot

[ADD] icon.png
2023-08-29 20:01:04 +02:00
OCA-git-bot
ef427e7f1f [ADD] setup.py 2023-08-28 12:15:14 +00:00
OCA-git-bot
eed9cc69f1 [UPD] README.rst 2023-08-28 12:15:13 +00:00
OCA-git-bot
32803b832d [UPD] addons table in README.md 2023-08-28 12:15:12 +00:00
oca-ci
c5118e69aa [UPD] Update rma.pot 2023-08-28 12:11:34 +00:00
OCA-git-bot
4baa48925f Merge PR #361 into 16.0
Signed-off-by pedrobaeza
2023-08-28 12:08:24 +00:00
Pedro M. Baeza
ed3f242cb2 [MIG] rma: Migration to 16.0
* Standard procedure.
* Transfer view groups to nodes.
* Adjusted upstream changed field names.
* Converted onchanges to computed writable fields.
* Replace `Form` by direct dictionary vals in record creation, as they
  don't handle now properly multiple existing fields in the view, and
  computed writable improve the compatibility on new values.
* Replace domain returned on onchange by static domain in field.
* Change maintainer.

TT44213
2023-08-28 13:35:02 +02:00
Pedro M. Baeza
c093db19ec [IMP] rma: pre-commit stuff 2023-08-25 09:15:51 +02:00
Carlos Roca Zaragoza
160dd58ee1 Translated using Weblate (Spanish)
Currently translated at 90.5% (317 of 350 strings)

Translation: rma-15.0/rma-15.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-15-0/rma-15-0-rma/es/
2023-08-25 09:15:51 +02:00
mymage
dd12157908 Translated using Weblate (Italian)
Currently translated at 100.0% (348 of 348 strings)

Translation: rma-15.0/rma-15.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-15-0/rma-15-0-rma/it/
2023-08-25 09:15:51 +02:00
Francesco Foresti
a3f0da6c99 Translated using Weblate (Italian)
Currently translated at 100.0% (348 of 348 strings)

Translation: rma-15.0/rma-15.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-15-0/rma-15-0-rma/it/
2023-08-25 09:15:51 +02:00
David
40fa0a9978 [FIX] rma: avoid refunding in picking return wizard
If we place an RMA from the stock picking return wizard, we want to
avoid setting the new moves to refund as that will affect the related
sale lines delivered quantities count.

TT42021
2023-08-25 09:15:51 +02:00
Nikolaus Weingartmair
474226c416 Translated using Weblate (German)
Currently translated at 100.0% (354 of 354 strings)

Translation: rma-15.0/rma-15.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-15-0/rma-15-0-rma/de/
2023-08-25 09:15:51 +02:00
David
f8f366ec50 [FIX] rma: avoid reopening a cancelled RMA when the reception is deleted
When we delete the reception for an RMA, we're setting it to draft
automatically so we can confirm it again and create a new reception.
This is unconvenient when the RMA is cancelled, as we don't wan't to
reopen it automatically.

TT41943
2023-08-25 09:15:51 +02:00
Sergio Zanchetta
e3fa81709e Translated using Weblate (Italian)
Currently translated at 99.4% (346 of 348 strings)

Translation: rma-15.0/rma-15.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-15-0/rma-15-0-rma/it/
2023-08-25 09:15:51 +02:00
David
4e0478cd0a [FIX] rma: multiple substitution moves
The product replacement could explode into several moves like in the
case of MRP BoM kits.

TT40194
2023-08-25 09:15:51 +02:00