Commit Graph

147 Commits

Author SHA1 Message Date
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
Nikolaus Weingartmair
b909e1f828 Added translation 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/

Added translation using Weblate (German (Austria))
2023-08-25 09:15:51 +02:00
Víctor Martínez
0c4bf6d5aa [IMP] rma: Use _prepare_home_portal_values() function. 2023-08-25 09:15:51 +02:00
Víctor Martínez
10b1a19736 [OU-ADD] rma: Add migration script.
TT37300
2023-08-25 09:15:51 +02:00
Nikolaus Weingartmair
5afdeac1db [MIG] rma: Migration to 15.0 2023-08-25 09:15:51 +02:00
Víctor Martínez
ee545ae551 [FIX] rma + rma_sale: Allow to create an RMA to a user with access_to…ken to sale order (no user created).
[FIX] rma + rma_sale: Show RMA's list (with share url) to a user with access_token to sale order (no user created).
2023-08-25 09:15:51 +02:00
OCA Transbot
80f8fa8234 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: rma-14.0/rma-14.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-14-0/rma-14-0-rma/
2023-08-25 09:15:51 +02:00
Víctor Martínez
ad4bce575e [FIX] rma: Avoid set invoice_payment_term_id from partner default value in refund.
TT37690
2023-08-25 09:15:51 +02:00
david
e52f18b66d [IMP] rma: optionally group returns to customer
TT34806
2023-08-25 09:15:51 +02:00
david
0e6148fe6e [FIX] rma: refund permissions
Up to v12, account.invoice, was allowed for a wide variety of users. In
this version though, with account.move conversion, those permissions are
quite restricted.

We want to keep the possibility to open a refund for the RMA users.
Although only Invoicing users will be able to post it anyway.

TT34644
2023-08-25 09:15:51 +02:00
Francesco Foresti
8d29deb89e Translated using Weblate (Italian)
Currently translated at 100.0% (346 of 346 strings)

Translation: rma-14.0/rma-14.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-14-0/rma-14-0-rma/it/
2023-08-25 09:15:51 +02:00
Víctor Martínez
2719bf5730 [FIX] rma: Allow manual finalization in wizard. 2023-08-25 09:15:51 +02:00
Giovanni
096fd42411 [14.0][FIX] rma, fix permission for action 2023-08-25 09:15:51 +02:00
Giovanni
be17d76c82 [14.0][FIX] rma_sale, fix action permission issues. 2023-08-25 09:15:51 +02:00
oca-git-bot
66b7959196 [IMP] update dotfiles [ci skip] 2023-08-25 09:15:51 +02:00
Samuele Mariani
b046da0880 Translated using Weblate (Italian)
Currently translated at 100.0% (346 of 346 strings)

Translation: rma-14.0/rma-14.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-14-0/rma-14-0-rma/it/
2023-08-25 09:15:51 +02:00
Francesco Foresti
fbd486f587 Translated using Weblate (Italian)
Currently translated at 99.1% (343 of 346 strings)

Translation: rma-14.0/rma-14.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-14-0/rma-14-0-rma/it/
2023-08-25 09:15:51 +02:00
david
52bd881621 [FIX] rma: name column width in tree view
In the tree view, the RMA code (`name` field) tends to lose in the
column width share. The result is will be the trimming of the reference
with ellipsis (...).

As this is very relevant information, we want to ensure a minimum width
for such reference.

TT35107
2023-08-25 09:15:51 +02:00
Florian da Costa
896631f1dc [FIX] Do not link reception and delivery move in case of RMA replacement 2023-08-25 09:15:51 +02:00
david
389ef57c6a [IMP] rma: finish RMA manually
Sometimes there's no choice to return, refund or replace an RMA for
different reasons. For example, when the customer doesn't want to repair
the product because that would be too expensive. We still want finish
the RMA and document the reasons. This improvement allows it.

TT34164
2023-08-25 09:15:51 +02:00
david
970f9a064c [IMP] rma: unplug test cases from declaration
This way, we can reuse them in other modules easily
2023-08-25 09:15:51 +02:00
david
98aba1a947 [IMP] rma report: invoice and shipping address
TT13069
2023-08-25 09:15:51 +02:00
Pedro M. Baeza
3a8e91d4f3 [FIX] rma: Adjust hook for existing values
If rma_in_type_id or rma_out_type_id are already set, then the hook
fails. With this alternative code, we avoid it and clean it for being
clearer.
2023-08-25 09:15:51 +02:00
david
8d1e03675e [FIX] rma: return wizard to_refund
To create the rma we create the core return wizard, which now sets
to_refund to True as default. This isn't right for RMAs anyway.

TT33706
2023-08-25 09:15:51 +02:00
xavigutipujol
4463c9f59c Translated using Weblate (Spanish)
Currently translated at 79.8% (257 of 322 strings)

Translation: rma-14.0/rma-14.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-14-0/rma-14-0-rma/es/
2023-08-25 09:15:51 +02:00
Kev-Roche
c802435e6f [FIX] duplicate labels (category_id, uom_category_id) of rma()) 2023-08-25 09:15:51 +02:00
Francesco Foresti
ca639c2e5e Translated using Weblate (Italian)
Currently translated at 98.7% (317 of 321 strings)

Translation: rma-14.0/rma-14.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-14-0/rma-14-0-rma/it/
2023-08-25 09:15:51 +02:00
Samuele Mariani
04a4978327 Translated using Weblate (Italian)
Currently translated at 96.5% (310 of 321 strings)

Translation: rma-14.0/rma-14.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-14-0/rma-14-0-rma/it/
2023-08-25 09:15:51 +02:00
Florian da Costa
e3750a31e4 [FIX] multi company error on rma location choice 2023-08-25 09:15:51 +02:00
Francesco Foresti
18d9eacece Added translation using Weblate (Italian) 2023-08-25 09:15:51 +02:00