Commit Graph

42 Commits

Author SHA1 Message Date
David
6d587c1e22 [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-03-14 12:58:27 +01:00
David
0c2e649fab [FIX] rma: multiple substitution moves
The product replacement could explode into several moves like in the
case of MRP BoM kits.

TT40194
2022-10-26 16:23:53 +02:00
Nikolaus Weingartmair
44ac8e8a23 [MIG] rma: Migration to 15.0 2022-08-11 10:41:55 +02:00
Víctor Martínez
d9e4fa120c [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).
2022-08-10 07:47:02 +02:00
Víctor Martínez
75defb3d15 [FIX] rma: Avoid set invoice_payment_term_id from partner default value in refund.
TT37690
2022-08-10 07:47:02 +02:00
david
b3f901c949 [IMP] rma: optionally group returns to customer
TT34806
2022-08-10 07:47:02 +02:00
david
2f15018b66 [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
2022-08-10 07:47:02 +02:00
Giovanni
c1f01ed158 [14.0][FIX] rma, fix permission for action 2022-08-10 07:47:02 +02:00
Giovanni
07838b0d4e [14.0][FIX] rma_sale, fix action permission issues. 2022-08-10 07:47:02 +02:00
oca-git-bot
a6f06c9e06 [IMP] update dotfiles [ci skip] 2022-08-10 07:47:02 +02:00
Florian da Costa
a2d207618a [FIX] Do not link reception and delivery move in case of RMA replacement 2022-08-10 07:47:02 +02:00
david
5e9904b93c [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
2022-08-10 07:47:02 +02:00
david
f0360134d3 [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
2022-08-10 07:47:02 +02:00
Kev-Roche
9dd38090c1 [FIX] duplicate labels (category_id, uom_category_id) of rma()) 2022-08-10 07:47:02 +02:00
Florian da Costa
fd779c89ed [FIX] multi company error on rma location choice 2022-08-10 07:47:02 +02:00
david
52d32f707d [FIX] rma: return location
The new implementation wasn't getting the value set in the wizard.

TT32046
2022-08-10 07:47:02 +02:00
Pedro M. Baeza
09abc9d3b5 [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.
2022-08-10 07:47:02 +02:00
david
44bec64b87 [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
2022-08-10 07:47:02 +02:00
Pedro M. Baeza
12fb70ad11 [FIX] rma: Propagate cancel_backorder argument
Respect inheritance.
2022-08-10 07:47:02 +02:00
david
956d90959c [IMP] rma: allow to archive operation types
TT30985
2022-08-10 07:47:02 +02:00
david
43277a23ab [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
2022-08-10 07:47:02 +02:00
david
5eb8e8443e [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
2022-08-10 07:47:02 +02:00
Chafique
1beb33e6f4 [MIG] rma: Migration to 14.0 2022-08-10 07:47:02 +02:00
Chafique
e217480565 [IMP] rma: black, isort, prettier 2022-08-10 07:47:02 +02:00
david
cce5ad232c [IMP] rma: tags
TT29594
2022-08-10 07:47:02 +02:00
Ernesto Tejeda
ae038e7772 [FIX] rma: Set default source location for RMA created from scratch 2022-08-10 07:47:02 +02:00
david
fe1c52a40b [IMP] rma, rma_sale: shipping address
Allow to set the desired shipping address where the goods must be
returned after the RMA is processed.
2022-08-10 07:47:02 +02:00
david
8d86315406 [IMP] rma: automatic notification subtypes
TT28344
2022-08-10 07:47:02 +02:00
david
abbc70cdab [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.
2022-08-10 07:47:02 +02:00
david
4043b37ee2 [IMP] rma: auto send confirmation email 2022-08-10 07:47:02 +02:00
Ernesto Tejeda
5fbffc8b0d [IMP] rma: Add customer as suggested recipient 2022-08-10 07:47:02 +02:00
Ernesto Tejeda
0fa9672ce0 [MIG] rma: Migration to 13.0 2022-08-10 07:47:02 +02:00
Ernesto Tejeda
f8074f4c60 [IMP] rma: black, isort, prettier 2022-08-10 07:47:02 +02:00
david
908ec58dde [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/
2022-08-10 07:47:02 +02:00
Ernesto Tejeda
98d8693d95 [IMP] rma: set rma to received on invoice delete + incoming picking type use existing lot by default.
[IMP] rma: set rma to received on invoice delete.

Remove 'waiting_refund' rma state.
RMAs go from received to refunded.
When the linked refund is deleted the rma is set to received.

[UPD] Update rma.pot

rma 12.0.1.4.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/

[IMP] rma: incoming picking type use existing lot by default.

rma 12.0.1.4.3
2022-08-10 07:47:02 +02:00
Pedro M. Baeza
2df288c982 [FIX] rma: Perform refund with proper view
Not indicating account.invoice, it takes the default that is the vendor bill view.
We force the suitable one.
2022-08-10 07:47:02 +02:00
david
84874cf6ee [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.pot

rma 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
Translate-URL: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-rma/
2022-08-10 07:47:02 +02:00
Pedro M. Baeza
6d55c9d6b7 [IMP] rma: Return created sequence on create_rma_index
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/
2022-08-10 07:47:02 +02:00
david
89dcaaeab1 [FIX] rma: permissions for general users
- Avoid permission blockings on users who doesn't have RMA permissions.
- Add activities view on RMA list.

[UPD] Update rma.pot

rma 12.0.1.3.1
2022-08-10 07:47:02 +02:00
Ernesto Tejeda
4120f2db89 [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.pot

rma 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
Translate-URL: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-rma/
2022-08-10 07:47:02 +02:00
david
87bff4530d [FIX+IMP] rma: view permissions + portal views access errors + teams flow + Translated using Weblate (Spanish)
[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 12.0.1.1.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/

[FIX] rma: portal views access errors

- Portal mail thread needs token config.
- Unpublished products will raise AccessError on RMAs portal views for
portal users due to record rules.
- Ensure active_id when getting actions in rma, since we could come from
a context that pollutes the expected active rma id.

[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.pot

rma 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
Translate-URL: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-rma/

Translated using Weblate (Spanish)

Currently translated at 96.2% (253 of 263 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/
2022-08-10 07:47:02 +02:00
Ernesto Tejeda
42c8f0630a [ADD] rma: new module
[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/
2022-08-10 07:47:02 +02:00