Commit Graph

43 Commits

Author SHA1 Message Date
david
69db691c06 [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
2021-06-29 11:24:58 +02:00
david
7c9b6bc3a8 [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-06-19 11:34:06 +02:00
OCA-git-bot
679dfc1cca Merge PR #220 into 13.0
Signed-off-by pedrobaeza
2021-05-21 18:24:21 +00:00
OCA Transbot
124d4baeef Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: rma-13.0/rma-13.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma/
2021-05-07 19:21:46 +00:00
OCA-git-bot
92aa76e30d rma 13.0.1.2.0 2021-05-07 19:21:33 +00:00
oca-travis
b43b302076 [UPD] Update rma.pot 2021-05-07 17:36:16 +00:00
david
e1fdf2fc1d [IMP] rma: tags
TT29594
2021-05-07 12:51:17 +02:00
david
b018724021 [FIX] rma: tagged test 2021-05-05 09:53:58 +02:00
OCA Transbot
7bbe872f92 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: rma-13.0/rma-13.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma/
2021-04-13 15:00:48 +00:00
OCA-git-bot
cd62f636a5 rma 13.0.1.1.0 2021-04-13 15:00:32 +00:00
oca-travis
8a83ea1615 [UPD] Update rma.pot 2021-04-13 14:36:41 +00:00
Ernesto Tejeda
6e33a1ff9c [FIX] rma: Set default source location for RMA created from scratch 2021-04-12 17:24:06 +02:00
david
f32c4ca97d [IMP] rma, rma_sale: shipping address
Allow to set the desired shipping address where the goods must be
returned after the RMA is processed.
2021-04-12 17:24:06 +02:00
david
a05cdcf1ce [IMP] rma: automatic notification subtypes
TT28344
2021-04-12 17:24:06 +02:00
david
6378647d1c [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-04-12 17:24:06 +02:00
david
0493b315d2 [IMP] rma: auto send confirmation email 2021-04-12 17:24:06 +02:00
Dong
fa5a4ddd78 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/
2021-03-21 11:46:11 +00:00
Dong
694ba2f484 Added translation using Weblate (Chinese (Simplified)) 2021-03-21 08:46:13 +00:00
Dorin Hongu
0d6dce6061 Translated 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/
2020-12-20 05:43:26 +00:00
Dorin Hongu
1c2126ba59 Translated using Weblate (Romanian)
Currently translated at 40.3% (109 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/
2020-12-19 13:43:17 +00:00
Dorin Hongu
1f7445af7c Translated using Weblate (Romanian)
Currently translated at 7.4% (20 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/
2020-12-19 09:43:17 +00:00
Bosd
377c8f2696 Added translation using Weblate (Dutch) 2020-12-13 21:10:31 +00:00
Dorin Hongu
5a8405f4d6 Translated using Weblate (Romanian)
Currently translated at 6.7% (18 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/
2020-12-11 15:36:28 +00:00
Dorin Hongu
8ec499ce2d Added translation using Weblate (Romanian) 2020-12-11 12:37:09 +00:00
OCA Transbot
954c022443 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: rma-13.0/rma-13.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma/
2020-12-01 15:21:16 +00:00
OCA-git-bot
749928d4fd rma 13.0.1.0.1 2020-12-01 15:21:05 +00:00
oca-travis
9d93eb7b8a [UPD] Update rma.pot 2020-12-01 15:11:59 +00:00
Ernesto Tejeda
7110617926 [IMP] rma: Add customer as suggested recipient 2020-12-01 09:52:05 -05:00
OCA Transbot
d80f55d71a Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: rma-13.0/rma-13.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma/
2020-11-05 08:42:22 +00:00
oca-travis
8616e7122b [UPD] Update rma.pot 2020-11-03 23:50:01 +00:00
Ernesto Tejeda
95ff124906 [MIG] rma: Migration to 13.0 2020-11-03 17:54:20 -05:00
Ernesto Tejeda
5aef738160 [IMP] rma: black, isort, prettier 2020-10-24 14:22:15 -04:00
david
8010b6d9f2 [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/
2020-10-24 14:22:15 -04:00
Ernesto Tejeda
30a59efcc9 [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
2020-10-24 14:21:21 -04:00
Pedro M. Baeza
2e8099f51a [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.
2020-10-24 14:21:21 -04:00
david
a052e84acd [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/
2020-10-24 14:21:21 -04:00
Pedro M. Baeza
e63957ed99 [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/
2020-10-24 14:21:21 -04:00
david
7b045378fd [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
2020-10-24 14:21:21 -04:00
Pedro M. Baeza
e717227bb7 Translated using Weblate (Spanish)
Currently translated at 100.0% (263 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/
2020-10-24 14:21:21 -04:00
Ernesto Tejeda
3b209dae5d [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/
2020-10-24 14:21:21 -04:00
david
8fef57c081 [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/
2020-10-24 14:20:40 -04:00
Fernando Colus
65e3f9abf3 Added translation using Weblate (Portuguese (Brazil)) 2020-10-24 12:14:24 -04:00
Ernesto Tejeda
88886bc71c [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/
2020-10-24 12:13:49 -04:00