Commit Graph

33 Commits

Author SHA1 Message Date
Pedro M. Baeza
8b62b51e8d [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
2020-11-04 10:15:04 -05:00
david
303bd68070 [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/
2020-11-04 10:15:04 -05:00
Pedro M. Baeza
2495758bd1 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/
2020-11-04 10:15:04 -05:00
Ernesto Tejeda
93c233ae7f [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/
2020-11-04 10:15:04 -05:00
david
88ed9154d7 [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/
2020-11-04 10:15:04 -05:00
Ernesto Tejeda
91b6cbcad0 [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/
2020-11-04 10:15:04 -05:00
Fernando Colus
fabaca0997 Added translation using Weblate (Portuguese (Brazil)) 2020-11-04 10:15:04 -05:00
Ernesto Tejeda
4b4d461ac6 [ADD] rma_sale: new module
[UPD] Update rma_sale.pot

[ADD] icon.png
2020-11-04 10:15:04 -05:00
OCA-git-bot
bd0e650b5a [ADD] setup.py 2020-11-03 23:55:54 +00:00
oca-travis
8616e7122b [UPD] Update rma.pot 2020-11-03 23:50:01 +00:00
OCA-git-bot
05bdeace79 Merge PR #177 into 13.0
Signed-off-by pedrobaeza
2020-11-03 23:40:02 +00:00
Ernesto Tejeda
95ff124906 [MIG] rma: Migration to 13.0 2020-11-03 17:54:20 -05:00
Stéphane Bidoul
18e1109160 update dotfiles [ci skip] 2020-11-01 23:05:16 +01:00
Stéphane Bidoul
59db55ddae Use prettier/pre-commit for compatibility with pre-commit 2.8 [ci skip] 2020-11-01 14:49:17 +01:00
oca-git-bot
296e566ca3 [IMP] pre-commit: pin node version [ci skip] 2020-10-27 01:15:08 +01: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
OCA-git-bot
69a4745c2e [UPD] pin flake8 version [ci skip] 2020-05-13 14:08:18 +02:00
OCA-git-bot
57bac3f0e9 pre-commit update [ci skip] 2020-03-14 12:21:22 +01:00
OCA Bot
09b9d36969 [UPD] .travis.yml: Use verbose colored pre-commit [skip ci] 2020-01-31 18:51:43 +01:00
OCA-git-bot
89534bd1a6 [ADD] .editorconfig [ci skip] 2019-11-19 21:12:54 +01:00
OCA-git-bot
05ba3d7208 pre-commit, black, isort [ci skip] 2019-10-12 12:28:11 +02:00
OCA Bot
80b581bcbe [MIG] Add metafiles
[skip ci]
2019-09-29 23:45:56 +02:00