-
Notifications
You must be signed in to change notification settings - Fork 21
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
[ADD] sale_order_rental: This module put the start date, end date and… #50
[ADD] sale_order_rental: This module put the start date, end date and… #50
Conversation
eac6c1a
to
7b3e865
Compare
Codecov Report
@@ Coverage Diff @@
## 12.0 #50 +/- ##
===========================================
- Coverage 97.61% 76.67% -20.95%
===========================================
Files 13 17 +4
Lines 168 313 +145
===========================================
+ Hits 164 240 +76
- Misses 4 73 +69
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## 12.0 #50 +/- ##
========================================
- Coverage 100% 98.14% -1.86%
========================================
Files 20 27 +7
Lines 254 432 +178
========================================
+ Hits 254 424 +170
- Misses 0 8 +8
Continue to review full report at Codecov.
|
7b3e865
to
2fcaf6d
Compare
@oihane no entiendo los errores que me da travis |
e73de06
to
5150ec5
Compare
ebe63f1
to
bf23a7e
Compare
@avanzosc/developers review please |
self.sale_order.onchange_expected_end_date() | ||
self.sale_order.onchange_expected_delivery_date() | ||
invoice_line = self.sale_order.invoice_ids[0].invoice_line_ids[0] | ||
invoice_line._compute_expected_delivery_date() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No debes "ejecutar" el compute si no leer el campo y validar que el valor es correcto, de esa manera ejecutará el metodo, lo mismo con el resto de líneas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tema realizado @oihane , eskerrik asko.
self.sale_order.write( | ||
{'expected_delivery_date': False, | ||
'expected_end_date': False}) | ||
self.sale_order.onchange_expected_end_date() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SI ejecutas un onchange tendrás que validar que lo que hace es correcto, no simplemente ejecutarlo, lo mismo con la siguiente línea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tema realizado @oihane , necesito que me desbloquees el PR. Eskerrik asko.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tema realizado @oihane , necesito que me desbloquees el PR. Eskerrik asko.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
si lo que haces es eliminar los campos en el pedido, y eso tiene que hacer que los campos en las líneas sean vacíos no es lo que estas validando. No es correcto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Realizados los cambios solicitados por @oihane
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pero cambia el campo en la línea de pedido, no estas comprobando las lineas de pedido, si no las facturas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Realizados los cambios solicitados por @oihane
36f0651
to
9c1413b
Compare
54033f2
to
0373769
Compare
Realizadas las mejoras solicitadas por @oihane |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
50206e6
to
3b8eb78
Compare
self.sale_order.onchange_expected_end_date() | ||
self.sale_order.onchange_expected_delivery_date() | ||
invoice_line = self.sale_order.invoice_ids[0].invoice_line_ids[0] | ||
for invoice_line in self.sale_order.invoice_ids: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
si buscas facturas (invoice) no pongas invoice_line
lleva a error
3b8eb78
to
8484ade
Compare
0589b03
to
bfdc6dd
Compare
bfdc6dd
to
f074896
Compare
02ee55d
to
55dba3e
Compare
95113a8
to
98df64e
Compare
98df64e
to
3c6496b
Compare
No description provided.