Commit Graph

118 Commits

Author SHA1 Message Date
OCA-git-bot
13403d8ba2 Merge PR #190 into 14.0
Signed-off-by pedrobaeza
2021-10-11 10:08:23 +00:00
OCA Transbot
56fc906915 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: rma-14.0/rma-14.0-rma
Translate-URL: https://translation.odoo-community.org/projects/rma-14-0/rma-14-0-rma/
2021-09-27 12:08:26 +00:00
OCA-git-bot
5977b358f4 [UPD] addons table in README.md 2021-09-27 12:08:20 +00:00
OCA-git-bot
f4eda46eb1 rma 14.0.1.0.2 2021-09-27 12:08:16 +00:00
oca-travis
bee807a760 [UPD] Update rma.pot 2021-09-27 12:04:24 +00:00
OCA-git-bot
978cf06db8 Merge PR #239 into 14.0
Signed-off-by pedrobaeza
2021-09-27 11:58:57 +00:00
david
425432efda [FIX] rma: return location
The new implementation wasn't getting the value set in the wizard.

TT32046
2021-09-27 11:27:31 +02:00
Pedro M. Baeza
0d0df215db [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.
2021-09-27 11:25:43 +02:00
david
a8f244bf0d [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
2021-09-27 11:21:07 +02:00
OCA-git-bot
726be02e25 [UPD] addons table in README.md 2021-09-19 15:34:02 +00:00
Pedro M. Baeza
19b18fa595 [FIX] rma: Propagate cancel_backorder argument
Respect inheritance.
2021-09-19 17:33:13 +02:00
Chafique
0d98089699 [14.0][MIG] rma_sale module 2021-09-03 13:13:40 +02:00
Chafique
8afb31c883 [IMP] rma_sale: black, isort, prettier 2021-09-03 12:42:24 +02:00
OCA Transbot
1f19985889 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:19 +02:00
OCA-git-bot
f79e9e6e7a rma_sale 13.0.2.0.0 2021-09-03 12:35:19 +02:00
oca-travis
65f23a86fa [UPD] Update rma_sale.pot 2021-09-03 12:35:19 +02:00
david
35df5a65af [IMP] rma_sale: portal rma request single page view
Now it's possible to configure if the portal RMA request form is loaded
in a popup or in a single page.

In that page, we can add custom blocks (if the website is installed) a
customize the form text.

In this commit, we also add the possibility to extend the form view to allow
custom fields that will show up in the RMA description.

TT29670
2021-09-03 12:35:19 +02:00
Pedro M. Baeza
e74bd55be7 [FIX] rma: pre-commit 2021-09-03 12:35:19 +02:00
david
85bbd9ca7d [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-09-03 12:35:19 +02:00
OCA Transbot
0a00a6801e 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:19 +02:00
oca-travis
ab84c05614 [UPD] Update rma_sale.pot 2021-09-03 12:35:19 +02:00
david
a0796afc31 [FIX] rma_sale: view id 2021-09-03 12:35:18 +02:00
david
77d166f1f4 [FIX] rma_sale: take product from move 2021-09-03 12:35:18 +02:00
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