-
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
[IMP] sale_crm_school: Coger ordenante del producto no del la categoría #47
[IMP] sale_crm_school: Coger ordenante del producto no del la categoría #47
Conversation
Codecov Report
@@ Coverage Diff @@
## 12.0 #47 +/- ##
==========================================
+ Coverage 96.96% 97.61% +0.64%
==========================================
Files 14 13 -1
Lines 165 168 +3
==========================================
+ Hits 160 164 +4
+ Misses 5 4 -1
Continue to review full report at Codecov.
|
@avanzosc/developers ... review please. |
@anajuaristi si no se va a utilizar el originator_id de la categoria convendría eliminarlo |
161c54b
to
24e692a
Compare
He quitado el campo "originator_id" de plantillas de producto, como me solicitó @oihane , y después de comentarlo con @anajuaristi . He vuelto a subir el módulo. Eskerrik asko. 1.- En cabecera de la plantilla, many2one a colegio --> mostrar en tree y form e incluir en búsqueda y agrupación. |
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.
Según entiendo el center_id también hay que quitarlo de la categoría de producto.
@anajuaristi ¿Debo de hace lo que me dice @Daniel-CA? |
24e692a
to
f79891d
Compare
Dani... ya he quitado el centro de la categoría de producto como hablamos ayer. Eskerrik asko.
@avanzosc/developers please review |
sale_crm_school/models/product.py
Outdated
@@ -8,5 +8,4 @@ class ProductTemplate(models.Model): | |||
_inherit = 'product.template' | |||
|
|||
center_id = fields.Many2one( | |||
relation='res.partner', string='Center', readonly=True, | |||
related='categ_id.center_id', store=True) | |||
comodel_name='res.partner', string='Center') |
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.
Deberia de ser colegio no?
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.
Falta el domain
domain=[('educational_category', '=', 'school')]
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.
Comentario a revisar.
f79891d
to
14c0f0e
Compare
14c0f0e
to
b65d52b
Compare
Realizada la corrección solicitada por @oihane. Eskerrik asko.
…ria.