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] l10n_es_aeat_mod130 #1079

Merged
merged 14 commits into from
Jul 5, 2019

Conversation

victormmtorres
Copy link

No description provided.

@oca-clabot
Copy link

Hey @victormmtorres, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

  • Launchpad Translations on behalf of openerp-spain-team (no github login found)
  • agaldona ainaragaldona@avanzosc.es (no github login found)

Appreciation of efforts,
OCA CLAbot

@victormmtorres victormmtorres changed the title [WIP] l10n_es_aeat_mod130: Add module new in 12.0 [WIP] l10n_es_aeat_mod130: Add module new in 11.0 May 7, 2019
@pedrobaeza pedrobaeza changed the title [WIP] l10n_es_aeat_mod130: Add module new in 11.0 [11.0][ADD] l10n_es_aeat_mod130 May 7, 2019
@pedrobaeza pedrobaeza changed the title [11.0][ADD] l10n_es_aeat_mod130 [11.0][MIG] l10n_es_aeat_mod130 May 7, 2019
@victormmtorres victormmtorres force-pushed the 11.0-add-l10n_es_aeat_mod130 branch 3 times, most recently from 9f3fc51 to 28a8b8a Compare May 8, 2019 15:34
@victormmtorres victormmtorres marked this pull request as ready for review May 8, 2019 15:36
@victormmtorres
Copy link
Author

cc @Tecnativa

@pedrobaeza pedrobaeza added this to the 11.0 milestone May 8, 2019
@pedrobaeza
Copy link
Member

Está ya listo para revisar?

@victormmtorres
Copy link
Author

Creo que ya esta bastante avanzado y se puede revisar, pero si veo que aun no pasa Travis ni Runbot por lo que ire machacando los errores

@pedrobaeza
Copy link
Member

OK, me espero a que avises que está ya en verde.

@victormmtorres
Copy link
Author

Travis is green but not Runbot.

Help wanted with Runbot, no Warning or Errors inside Full logs

@victormmtorres
Copy link
Author

Fails every time try force rebuild runbot

@pedrobaeza
Copy link
Member

@victormmtorres podrías añadir tests al módulo? Echa un vistazo al del 111 para inspirarte (https://github.com/OCA/l10n-spain/blob/11.0/l10n_es_aeat_mod111/tests/test_l10n_es_aeat_mod111.py):

  • Heredar del TestL10nEsAeatModBase que ya crea el plan contable y trae herramientas para rápida creación de facturas.
  • Crear alguna factura de compra y de venta declarando el diccionario de impuestos taxes_purchase y el de taxes_sale que no ves en el 111. Pon los impuestos normales SIVA21B y PIVA21B como ejemplo (aquí no es lo más importante, ya que se miden ingresos y gastos).
  • Crea el modelo.
  • Ejecuta el cálculo.
  • Comprueba los valores de lo que se debería haber calculado..
  • Puedes hacer variantes de marcar la casilla de deducción para ver cómo varía el cálculo.
  • Copia de aquí para "testear" la exportación a BOE:
    # Export to BOE
    export_to_boe = self.env['l10n.es.aeat.report.export_to_boe'].create({
    'name': 'test_export_to_boe.txt',
    })
    export_config_xml_ids = [
    'l10n_es_aeat_mod303.aeat_mod303_main_export_config',
    'l10n_es_aeat_mod303.aeat_mod303_2017_main_export_config',
    'l10n_es_aeat_mod303.aeat_mod303_2018_main_export_config',
    ]
    for xml_id in export_config_xml_ids:
    export_config = self.env.ref(xml_id)
    self.assertTrue(
    export_to_boe._export_config(self.model303, export_config)
    )
    (lo pongo entre comillas porque lo que estamos probando es que no falla únicamente).

@victormmtorres victormmtorres force-pushed the 11.0-add-l10n_es_aeat_mod130 branch 2 times, most recently from b3be4d6 to 2b7594b Compare May 23, 2019 16:24
@victormmtorres
Copy link
Author

Changes done @pedrobaeza

@victormmtorres victormmtorres force-pushed the 11.0-add-l10n_es_aeat_mod130 branch 2 times, most recently from 4706640 to 4701115 Compare May 24, 2019 08:41
@victormmtorres
Copy link
Author

@pedrobaeza

@victormmtorres
Copy link
Author

@pedrobaeza please review

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Con los últimos cambios realizados debería estar todo correcto, aunque mantengo sin fusionar hasta confirmación del cliente

@pedrobaeza pedrobaeza force-pushed the 11.0-add-l10n_es_aeat_mod130 branch 2 times, most recently from 171fe1c to 312d1b4 Compare June 11, 2019 15:22
- Remove redundant fields
- Expenses of difficult justification
- Monetary type in fields
- Adjust BOE export format
- Adjust views
- Test BOE export
- Other fine tuning
@pedrobaeza pedrobaeza force-pushed the 11.0-add-l10n_es_aeat_mod130 branch from 312d1b4 to da1f24b Compare June 11, 2019 20:07
@pedrobaeza pedrobaeza merged commit 3542a4d into OCA:11.0 Jul 5, 2019
@pedrobaeza pedrobaeza deleted the 11.0-add-l10n_es_aeat_mod130 branch July 5, 2019 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants