Commit Graph

24 Commits

Author SHA1 Message Date
OCA-git-bot
e5cc2c8224 Merge PR #205 into 12.0
Signed-off-by pedrobaeza
2021-03-09 14:55:56 +00:00
Ernesto Tejeda
d8c610a83f [FIX] rma: Set default source location for RMA created from scratch 2021-03-04 10:40:57 -05:00
david
504d566d15 [IMP] rma: automatic notification subtypes
TT28344
2021-03-02 10:20:09 +01:00
david
9614c93f88 [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-02-19 15:08:49 +01:00
david
c36610357e [IMP] rma: auto send confirmation email 2021-02-11 14:35:04 +01:00
Ernesto Tejeda
49e0bb6d91 [IMP] rma: Add customer as suggested recipient 2020-11-30 09:23:19 -05:00
david
242b7e21a1 [IMP] rma, rma_sale: shipping address
Allow to set the desired shipping address where the goods must be
returned after the RMA is processed.
2020-11-09 13:17:27 +01:00
Ernesto Tejeda
fa31c471d2 [FIX] rma: RMA quantities are not quantities on hand 2020-11-03 15:18:29 -05:00
david
73ed33a7e2 [FIX] rma: pass company as record to procurement
This upstream commit expects `company_id` as a record instead of as an
integer id: 836ff55dc9
2020-10-20 12:14:56 +02:00
david
934954e1a6 [FIX] rma: non rma users confirm
The sudo had to be before calling the records
2020-10-15 16:48:23 +02:00
david
c2d923f486 [FIX] rma: multicompany returns
The move was created with the default company
2020-10-15 10:54:00 +02:00
david
8c54896c19 [FIX] rma: return permissions
When a user with no stock manager permissions was doing the return, an
access error would raise.
2020-10-14 12:32:11 +02:00
david
cbdea0caba [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
2020-09-30 16:32:04 +02:00
Ernesto Tejeda
bd48f905fc [IMP] rma: incoming picking type use existing lot by default. 2020-09-16 10:03:40 -04:00
Ernesto Tejeda
d576afb058 [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.
2020-09-15 17:56:30 -04:00
Pedro M. Baeza
cc673918f2 [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-09-14 15:58:14 +02:00
david
bdd0e739f6 [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
2020-09-07 12:19:15 -04:00
Pedro M. Baeza
4db443924b [IMP] rma: Return created sequence on create_rma_index 2020-08-26 08:16:29 +00:00
david
099d86dbce [FIX] rma: permissions for general users
- Avoid permission blockings on users who doesn't have RMA permissions.
- Add activities view on RMA list.
2020-08-25 08:07:24 +02:00
Ernesto Tejeda
fbffdc71b2 [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.
2020-08-20 08:37:52 -04:00
david
fe6993e882 [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).
2020-08-18 12:34:32 +02:00
david
04299968c6 [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.
2020-08-18 09:14:07 +02:00
Ernesto Tejeda
66b7de7255 [ADD] rma_sale: new module 2020-07-08 10:01:11 -04:00
Ernesto Tejeda
ad26c0ddb9 [ADD] rma: new module 2020-06-21 11:41:00 -04:00