Commit Graph

112 Commits

Author SHA1 Message Date
Víctor Martínez
805178f671 [FIX] rma: Avoid set invoice_payment_term_id from partner default value in refund.
TT37690
2024-05-03 13:08:24 +02:00
david
095aef8efa [IMP] rma: optionally group returns to customer
TT34806
2024-05-03 13:08:24 +02:00
david
b7ceaf877c [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
2024-05-03 13:08:24 +02:00
Francesco Foresti
dada912922 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/
2024-05-03 13:08:24 +02:00
Víctor Martínez
dc15dfb768 [FIX] rma: Allow manual finalization in wizard. 2024-05-03 13:08:24 +02:00
Giovanni
c75724d31a [14.0][FIX] rma, fix permission for action 2024-05-03 13:08:24 +02:00
Giovanni
e9a7977a92 [14.0][FIX] rma_sale, fix action permission issues. 2024-05-03 13:08:24 +02:00
oca-git-bot
6ced59ac0e [IMP] update dotfiles [ci skip] 2024-05-03 13:08:24 +02:00
Samuele Mariani
d8411af584 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/
2024-05-03 13:08:24 +02:00
Francesco Foresti
a547e6ebf4 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/
2024-05-03 13:08:24 +02:00
david
82e319adeb [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
2024-05-03 13:08:24 +02:00
Florian da Costa
5d89fa420b [FIX] Do not link reception and delivery move in case of RMA replacement 2024-05-03 13:08:24 +02:00
david
6748c733f7 [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
2024-05-03 13:08:24 +02:00
david
df24c1fe7d [IMP] rma: unplug test cases from declaration
This way, we can reuse them in other modules easily
2024-05-03 13:08:24 +02:00
david
48e46f1481 [IMP] rma report: invoice and shipping address
TT13069
2024-05-03 13:08:24 +02:00
Pedro M. Baeza
3f4fc37a42 [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.
2024-05-03 13:08:24 +02:00
david
5496c03472 [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
2024-05-03 13:08:24 +02:00
xavigutipujol
573bf809cd 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/
2024-05-03 13:08:24 +02:00
Kev-Roche
3ed79410be [FIX] duplicate labels (category_id, uom_category_id) of rma()) 2024-05-03 13:08:24 +02:00
Francesco Foresti
1bd05894ed 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/
2024-05-03 13:08:24 +02:00
Samuele Mariani
29daa19773 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/
2024-05-03 13:08:24 +02:00
Florian da Costa
12a2bea313 [FIX] multi company error on rma location choice 2024-05-03 13:08:24 +02:00
Francesco Foresti
b47ecd527b Added translation using Weblate (Italian) 2024-05-03 13:08:24 +02:00
Pedro Castro Silva
f977197fbc Translated using Weblate (Portuguese)
Currently translated at 83.8% (269 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/pt/
2024-05-03 13:08:24 +02:00
Pedro Castro Silva
6161bf1740 Added translation using Weblate (Portuguese) 2024-05-03 13:08:23 +02:00
david
6ffa4fb608 [FIX] rma: return location
The new implementation wasn't getting the value set in the wizard.

TT32046
2024-05-03 13:08:23 +02:00
Pedro M. Baeza
cb71872980 [FIX] rma: Use Form to avoid UoM change invalid check
Since odoo/odoo#75823, the wizard lines have the field uom_id related to
move.product_uom and readonly=False, so if you call directly to
wiz.onchage_picking_id a write in stock move is executed and the warning raises,
although we don't really do any UoM change.

We avoid it using the `Form` to perform the wizard update.
2024-05-03 13:08:23 +02:00
david
34f96d1a5c [FIX] rma: default team and responsible
Having a default responsible value as it was defined doesn't behave
right when the user it's a portal one or the petition comes from a
sudo().

Also, by design it was expected to have a default team if it wasn't
defined, but as it was implemented that wasn't possible.

TT32056
2024-05-03 13:08:23 +02:00
Pedro M. Baeza
cb83ae6b38 [FIX] rma: Propagate cancel_backorder argument
Respect inheritance.
2024-05-03 13:08:23 +02:00
Florian
bd78691d92 Remove useless archive/unarchive button on form views
Co-authored-by: Ernesto Tejeda <ernesto.tejeda87@gmail.com>
2024-05-03 13:08:23 +02:00
david
e65f843b0f [IMP] rma: allow to archive operation types
TT30985
2024-05-03 13:08:23 +02:00
david
c7be8f25cd [IMP] rma: public tags
Now we can decide which tags are visible for the customer. This way, we
can use them as pseudo-states

TT29594
2024-05-03 13:08:23 +02:00
david
213c7ff900 [IMP] rma: notify reception to customer
Now we can configure if an automatic notification should be sent when we
receive the goods from an RMA in our warehouse

If we've got `rma_sale` or `website_rma` we can also configure draft
notifications so when the customer places an RMA from the portal the
receive an acknowledge email.

TT29595
2024-05-03 13:08:23 +02:00
Chafique
6f3884c32c [MIG] rma: Migration to 14.0 2024-05-03 13:08:23 +02:00
Chafique
32b569ee4c [IMP] rma: black, isort, prettier 2024-05-03 13:08:23 +02:00
david
d87d582a07 [IMP] rma: tags
TT29594
2024-05-03 13:08:23 +02:00
david
ed5f42a58f [FIX] rma: tagged test 2024-05-03 13:08:23 +02:00
Ernesto Tejeda
3dba34715b [FIX] rma: Set default source location for RMA created from scratch 2024-05-03 13:08:23 +02:00
david
b29da85d88 [IMP] rma, rma_sale: shipping address
Allow to set the desired shipping address where the goods must be
returned after the RMA is processed.
2024-05-03 13:08:23 +02:00
david
9b4a97e238 [IMP] rma: automatic notification subtypes
TT28344
2024-05-03 13:08:23 +02:00
david
2a3d713667 [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.
2024-05-03 13:08:23 +02:00
david
28a969863d [IMP] rma: auto send confirmation email 2024-05-03 13:08:23 +02:00
Dong
98bb76a1c7 Translated using Weblate (Chinese (Simplified))
Currently translated at 1.8% (5 of 270 strings)

Translation: rma-13.0/rma-13.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma/zh_CN/
2024-05-03 13:08:23 +02:00
Dong
8ec56979bc Added translation using Weblate (Chinese (Simplified)) 2024-05-03 13:08:23 +02:00
Bosd
f336ff1aeb Added translation using Weblate (Dutch) 2024-05-03 13:08:23 +02:00
Dorin Hongu
c509c804f0 Added translation using Weblate (Romanian)
Currently translated at 62.2% (168 of 270 strings)

Translation: rma-13.0/rma-13.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma/ro/
2024-05-03 13:08:23 +02:00
Ernesto Tejeda
170400096e [IMP] rma: Add customer as suggested recipient 2024-05-03 13:08:23 +02:00
Ernesto Tejeda
fa16030ce8 [MIG] rma: Migration to 13.0 2024-05-03 13:08:23 +02:00
Ernesto Tejeda
e6b8d70a73 [IMP] rma: black, isort, prettier 2024-05-03 13:08:23 +02:00
david
5c848ba927 [FIX+IMP] rma: usability + Translated using Weblate (Spanish) + 5 things:
[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 12.0.1.5.0

[UPD] Update rma.pot

Update translation files

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

Translation: rma-12.0/rma-12.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-rma/

Translated using Weblate (Spanish)

Currently translated at 100.0% (268 of 268 strings)

Translation: rma-12.0/rma-12.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-rma/es/

[FIX] rma: return permissions

When a user with no stock manager permissions was doing the return, an
access error would raise.

rma 12.0.1.5.1

[FIX] rma: multicompany returns

The move was created with the default company

[UPD] Update rma.pot

rma 12.0.1.5.2

Update translation files

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

Translation: rma-12.0/rma-12.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-rma/

[FIX] rma: non rma users confirm

The sudo had to be before calling the records

rma 12.0.1.5.3

[FIX] rma: pass company as record to procurement

This upstream commit expects `company_id` as a record instead of as an
integer id: 836ff55dc9

rma 12.0.1.5.4

[FIX] rma: internal users portal

Internal users with no RMA permissions got an access error when entering
the portal

[UPD] Update rma.pot

rma 12.0.1.6.0

Update translation files

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

Translation: rma-12.0/rma-12.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-rma/
2024-05-03 13:08:23 +02:00