Merge lp:~borjals/openobject-addons/5.0-bugfix-509204 into lp:openobject-addons/5.0
Status: | Work in progress | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~borjals/openobject-addons/5.0-bugfix-509204 | ||||
Merge into: | lp:openobject-addons/5.0 | ||||
Diff against target: |
80 lines (+21/-2) 5 files modified
account/account.py (+2/-0) account/account_view.xml (+2/-0) account/i18n/account.pot (+5/-0) account/i18n/es_ES.po (+6/-1) account/invoice.py (+6/-1) |
||||
To merge this branch: | bzr merge lp:~borjals/openobject-addons/5.0-bugfix-509204 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Borja López Soilán (NeoPolus) (community) | Needs Information | ||
OpenERP Core Team | Pending | ||
Review via email: mp+25590@code.launchpad.net |
Description of the change
Fixes the bug 509204 that is critical for some countries (like Spain; where it is a legal requirement having separate invoice and invoice refund sequences)
It adds a new field to the journals, to let the user specify a
different sequence for refund invoices (if he wants).
(The problem was that if no invoice sequence was specified for the
jornal, then OpenERP used automatically one invoice sequence or one
refund invoice sequence given the current invoice type.
But if an invoice sequence was defined for the jornal, OpenERP used it
always, for both the invoices and refunds.)
Unmerged revisions
- 2739. By Borja López Soilán (NeoPolus)
-
[FIX] account: Refund invoices didn't support sequences by fiscal year
It was not possible to use a sequence by fiscal year for the invoices,
and a different sequence by fiscal year for the refund invoices.This is a legal requirement on some countries (like Spain).
The problem was that if no invoice sequence was specified for the
jornal, then OpenERP used automatically one invoice sequence or one
refund invoice sequence given the current invoice type.
But if an invoice sequence was defined for the jornal, OpenERP used it
always, for both the invoices and refunds.This fix adds a new field to the journals, to let the user specify a
different sequence for refund invoices (if he wants).
Jordi Esteve wrote:
> No tengo claro que este merge que propones sea necesario, o sea añadir en los
> diarios una nueva secuencia para las facturas rectificativas, pues esta
> funcionalidad ya está implementada de serie en el módulo account.
Thanks for your review Jordi (even if it is in Spanish :) )
> Si debes usar 2 secuencias distintas, una para facturas normales y otra para
> las rectificativas, puedes definir dos diarios distintos, cada uno con su
> secuencia distinta, los dos diarios de tipo Venta, y en uno marcas la casilla
> Diario de reintegro y en el otro no. Lo mismo haríamos definiendo 2 diarios
> de tipo Compra, uno con la casilla Diario de reintegro marcada y en el otro
> no y cada uno con secuencias distintas. Creo que lo probé y funcionaba.
If you take a look at the bug report you will see a note about that: I know that if you can set a journal as "refund journal". But when you create refund invoices from normal invoices (you select an invoice you wish to refund, and use the Credit Note ("Factura de abono" on Spanish), the refund invoices are created on the same journal as the original invoice (if the original invoice was on the Sales Journal, the new invoice is on the Sales Journal too). That's why I proposed having the option to set the sequence to use for this kind of "refund invoices on the same journal".
Another option I can propose, is having the "Credit Note" (account. invoice. refund) wizard search for the "refund journal" of the same type of the current one (so if you have a Sales Journal, it should use the Sales Refunds Journal for the created invoices).
> Por tanto es posible q te denieguen el merge. No lo
> explico en inglés pq voy muy escaso de tiempo, ya lo probarás y lo comentarás.
> PD: La otra propuesta de merge si me parece muy acertada.
>
> Jordi
Ok, I marked this Merge status as "Work in progress" just to wait until somebody else puts his two cents :)
Should I propose the other option too?