Commit Graph

95 Commits

Author SHA1 Message Date
OCA-git-bot
4e18e8b9bc rma_sale 13.0.1.2.2 2021-09-03 12:35:18 +02:00
david
3c7beb3fe0 [FIX] rma_sale: recurrent RMA
If a product was already in an RMA in the past, we should be able to
place another RMA in the future.
2021-09-03 12:35:18 +02:00
OCA-git-bot
90696462b5 rma_sale 13.0.1.2.1 2021-09-03 12:35:18 +02:00
SilvioGregorini
55f9ccc956 [FIX] rma_sale: fix CacheError in _prepare_rma_values()
Lesser fix for sale.order.line.rma.wizard methods.
When method '_prepare_rma_values' was called upon records where field 'picking_id' was empty, Odoo raised a CacheError when trying to access field 'move_id'.
That happened because computed method '_compute_move_id' was not assigning a proper value to such field when 'picking_id' was empty.
Once the computed method is fixed (by simply assigning 'False' as 'move_id' value when no picking is set), the CacheError is solved.
2021-09-03 12:35:18 +02:00
SilvioGregorini
e745496e72 [FIX] rma_sale: fix wrong values for RMA creation
Lesser fix for creating RMA from website.
Current values will break any custom behaviour because Many2one fields are set using strings instead of integer (IDs).
2021-09-03 12:35:18 +02:00
OCA Transbot
ac99cd3947 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: rma-13.0/rma-13.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma_sale/
2021-09-03 12:35:18 +02:00
OCA-git-bot
52c2f9df59 rma_sale 13.0.1.2.0 2021-09-03 12:35:18 +02:00
oca-travis
32756293fd [UPD] Update rma_sale.pot 2021-09-03 12:35:18 +02:00
david
4eb408bcea [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-09-03 12:35:18 +02:00
david
b46bfac325 [IMP] rma_sale: portal ux
When the user selects an operation, the comment shows up so the customer
doesn't forget to enter his comments
2021-09-03 12:35:18 +02:00
david
e2bfab1c83 [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-09-03 12:35:18 +02:00
Ernesto Tejeda
ae0f79d02a [FIX] rma_sale: Request RMA from SO without picking from portal 2021-09-03 12:35:18 +02:00
OCA Transbot
63e1c1b2a4 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: rma-13.0/rma-13.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma_sale/
2021-09-03 12:35:18 +02:00
OCA-git-bot
1b44292439 rma_sale 13.0.1.1.0 2021-09-03 12:35:18 +02:00
oca-travis
d9b89258f5 [UPD] Update rma_sale.pot 2021-09-03 12:35:18 +02:00
david
a9b0fa0e5e [FIX] rma_sale: product in multiple lines
If there are several stock moves with the same product in the picking we
won't be able to make the RMA
2021-09-03 12:35:18 +02:00
Ernesto Tejeda
d2f3dabaef [IMP] *rma*: some improvements 2021-09-03 12:35:18 +02:00
Ernesto Tejeda
7b22aad013 [IMP] *rma*: Avoid RMAs of kits until rma_mrp is installed 2021-09-03 12:35:18 +02:00
Dorin Hongu
5df0af13cd Translated using Weblate (Romanian)
Currently translated at 100.0% (63 of 63 strings)

Translation: rma-13.0/rma-13.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma_sale/ro/
2021-09-03 12:35:18 +02:00
Dorin Hongu
9d921feee9 Translated using Weblate (Romanian)
Currently translated at 90.4% (57 of 63 strings)

Translation: rma-13.0/rma-13.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma_sale/ro/
2021-09-03 12:35:18 +02:00
Bosd
7b933972b6 Translated using Weblate (Dutch)
Currently translated at 61.9% (39 of 63 strings)

Translation: rma-13.0/rma-13.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma_sale/nl/
2021-09-03 12:35:18 +02:00
Bosd
a9ecd1e545 Added translation using Weblate (Dutch) 2021-09-03 12:35:18 +02:00
Dorin Hongu
9a42c502ee Translated using Weblate (Romanian)
Currently translated at 77.8% (49 of 63 strings)

Translation: rma-13.0/rma-13.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma_sale/ro/
2021-09-03 12:35:18 +02:00
Dorin Hongu
ade4c40751 Added translation using Weblate (Romanian) 2021-09-03 12:35:18 +02:00
OCA Transbot
c30cebff0f Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: rma-13.0/rma-13.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma_sale/
2021-09-03 12:35:18 +02:00
OCA-git-bot
b9696edba0 [UPD] README.rst 2021-09-03 12:35:18 +02:00
oca-travis
f1690cf756 [UPD] Update rma_sale.pot 2021-09-03 12:35:18 +02:00
Ernesto Tejeda
4a9259b23b [MIG] rma_sale: Migration to 13.0 2021-09-03 12:35:18 +02:00
Ernesto Tejeda
0cbca17df5 [IMP] rma_sale: black, isort, prettier 2021-09-03 12:35:18 +02:00
Pedro M. Baeza
612b8b8923 [FIX] rma_sale: Show directly form on 1 RMA
Fine-tune of 9a25d6, as for one record, the domain is not applied, but the list is
shown.
2021-09-03 12:35:18 +02:00
Ernesto Tejeda
caad7a1e54 [FIX] rma_sale: show related RMAs without default filters
rma_sale 12.0.1.5.1
2021-09-03 12:35:18 +02:00
david
93db9180ae [FIX+IMP] rma: usability + Translated using Weblate (Spanish)
[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_sale 12.0.1.5.0

Translated using Weblate (Spanish)

Currently translated at 100.0% (62 of 62 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/
2021-09-03 12:35:18 +02:00
Pedro M. Baeza
873bc9fb21 [FIX+IMP] rma_sale: Proper dependency + propagate salesman
- Proper dependency is `sale_stock`, not `sale`, as we are using some fields added
  by this module.
- Propagate salesman from sales order when available.

TT25525

rma_sale 12.0.1.4.1
2021-09-03 12:35:18 +02:00
david
5dbb855535 [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_sale.pot

rma_sale 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_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-rma_sale/
2021-09-03 12:35:18 +02:00
Pedro M. Baeza
6e2b174622 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/
2021-09-03 12:35:18 +02:00
Ernesto Tejeda
55ce8daed4 [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/
2021-09-03 12:35:18 +02:00
david
2d8d56ec49 [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/
2021-09-03 12:35:18 +02:00
Ernesto Tejeda
b25a2da9c1 [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/
2021-09-03 12:35:18 +02:00
Fernando Colus
8e1376cd19 Added translation using Weblate (Portuguese (Brazil)) 2021-09-03 12:35:18 +02:00
Ernesto Tejeda
1094633127 [ADD] rma_sale: new module
[UPD] Update rma_sale.pot

[ADD] icon.png
2021-09-03 12:35:18 +02:00
OCA-git-bot
230e6f51fa [UPD] addons table in README.md 2021-08-14 04:35:12 +00:00
OCA-git-bot
7c3acf6820 [ADD] setup.py 2021-07-29 12:07:34 +00:00
OCA-git-bot
cdb61cf0b9 [UPD] README.rst 2021-07-29 12:07:33 +00:00
OCA-git-bot
ccb3f85b52 [UPD] addons table in README.md 2021-07-29 12:07:33 +00:00
OCA-git-bot
ccaeb38113 Merge PR #189 into 14.0
Signed-off-by pedrobaeza
2021-07-29 12:05:23 +00:00
Florian
174194fd4c Remove useless archive/unarchive button on form views
Co-authored-by: Ernesto Tejeda <ernesto.tejeda87@gmail.com>
2021-07-29 10:41:17 +02:00
david
8e3c179a9c [IMP] rma: allow to archive operation types
TT30985
2021-07-28 17:42:52 +02:00
david
7b25e768ee [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
2021-07-28 17:42:39 +02:00
david
3a7371ffbf [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-07-28 17:42:39 +02:00
Chafique
b9538d5c35 [MIG] rma: Migration to 14.0 2021-07-28 17:42:34 +02:00