Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.0][MIG] account_invoice_refund_link: Migration to 11.0 #325

Merged
merged 13 commits into from
Nov 30, 2017

Conversation

oihane
Copy link
Contributor

@oihane oihane commented Oct 26, 2017

No description provided.

antespi and others added 2 commits October 25, 2017 17:45
Enhancements:

* Reverse link from invoice to refunds also available.
* Link at invoice line level, not only at invoice level.
* When installing the module after some refunds have been made, the module tries to find the link to the original invoice for them.
* OCA Guidelines compliance.
* Compatibility in OpenUpgrade for migrating from 8.0 module account_refund_original.
* Tests with 100% coverage.

Technical changes:

* Rename field origin_invoices_ids to origin_invoice_ids
* Rename field refund_invoices_description to refund_reason
* Rename addon to account_invoice_refund_link
@oihane oihane force-pushed the 11-mig-account_invoice_refund_link branch from 889b9de to dbc2e9c Compare October 26, 2017 12:55
oca-transbot and others added 9 commits October 26, 2017 15:07
Odoo already includes a method for preparing the refund, so using it
we don't have to make any guess about the returned domain and the
method also serves for refunds created directly by code.

Initial line match has also been improved comparing product or
description.
OCA Transbot updated translations from Transifex
@oihane oihane force-pushed the 11-mig-account_invoice_refund_link branch from dbc2e9c to 85dbbaa Compare October 26, 2017 13:08
@oihane oihane mentioned this pull request Oct 26, 2017
36 tasks
@pedrobaeza pedrobaeza added this to the 11.0 milestone Oct 31, 2017
@misern2
Copy link

misern2 commented Nov 13, 2017

Revisión funcional y técnica 👍

@oihane
Copy link
Contributor Author

oihane commented Nov 15, 2017

This is required for OCA/l10n-spain#696 can anyone check it?

@pedrobaeza
Copy link
Member

I'm removing last commit because it introduces some undesired changes:

* [FIX] account_invoice_refund_link: Don't copy m2m fields

Many2many fields have copy=True property by default, having
an incorrect duplication of origin or refund invoices.

Steps to reproduce:

* Create an invoice
* Refund it
* Duplicate the original invoice
* The refund will be link to 2 original invoices

Included tests covering the use cases for avoiding future regressions.
@pedrobaeza pedrobaeza force-pushed the 11-mig-account_invoice_refund_link branch from e71d732 to 41fb014 Compare November 30, 2017 10:28
@pedrobaeza pedrobaeza force-pushed the 11-mig-account_invoice_refund_link branch from 41fb014 to d15a9bd Compare November 30, 2017 10:47
@pedrobaeza pedrobaeza merged commit 96342ca into OCA:11.0 Nov 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants