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

account_invoice_posting #152

Closed

Conversation

openmindsystems
Copy link

This new module adds a field to save the accounting date in the invoice form.

@oca-clabot
Copy link

Hey @openmindsystems, 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/website.cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@pedrobaeza
Copy link
Member

Buenas, ¿podéis comentar cuál es el objetivo de ese campo?

@AlbertCabedo
Copy link

Buenas, para determinadas empresas que reciben subvenciones o han de justificar facturas para distintos organismos oficiales.

#
##############################################################################

import account_invoice

Choose a reason for hiding this comment

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

Se recomienda la forma: from . import account_invoice
Y falta un salto del línea al final.

@alejandrosantana
Copy link

PEP8 me devuelve estos avisos:

./__init__.py:25:23: W292 no newline at end of file
./__openerp__.py:36:17: E203 whitespace before ':'
./account_invoice.py:31:1: E302 expected 2 blank lines, found 1
./account_invoice.py:33:1: W293 blank line contains whitespace
./account_invoice.py:37:1: W293 blank line contains whitespace
./account_invoice.py:38:18: W292 no newline at end of file

El código, por lo demás, OK. En la utilidad/necesidad del campo ya no me meto. ¿Tendría sentido que la fecha se autorellenara con el botón de "Enviar factura"?

@pedrobaeza
Copy link
Member

Pero es que no es necesario crear un campo per se. Directamente, esa información la tienes con la fecha de creación del asiento contable. Se puede hacer dos cosas:

  • Consultar esa información directamente con las herramientas del sistema, lo cual reconozco que no es directo.
  • Poner que el campo sea un related a move_id.create_date.

Me decanto por esta segunda opción.

Además, este módulo debería ir destinado a un repositorio más genérico, ya que es una utilidad general. Yo diría de meterlo en https://github.com/OCA/account-financial-tools.

Siento tantas pegas, pero es por hacerlo lo mejor posible.

Changes made to pass the check of style guide of python
@openmindsystems
Copy link
Author

Buenas, hemos corregido los puntos que nos habéis comentado.

Un saludo.

@pedrobaeza
Copy link
Member

Mis comentarios no están atendidos.

@pedrobaeza pedrobaeza closed this Apr 14, 2016
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.

None yet

5 participants