Skip to content

[ADD] product: estate module#875

Draft
gvd-adhoc wants to merge 1 commit intoingadhoc:19.0from
adhoc-dev:19.0-t-12345-gvd
Draft

[ADD] product: estate module#875
gvd-adhoc wants to merge 1 commit intoingadhoc:19.0from
adhoc-dev:19.0-t-12345-gvd

Conversation

@gvd-adhoc
Copy link

No description provided.

@roboadhoc
Copy link

Pull request status dashboard

@api.depends("offer_ids.price")
def _compute_best_price(self):
for record in self:
if record.offer_ids:

Choose a reason for hiding this comment

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

Esto puede ser un onliner algo como:
record.best_price = max(record.offer_ids.mapped("price")) if record.offer_ids else 0.0

@api.depends("validity")
def _compute_date_deadline(self):
for record in self:
if record.create_date:

Choose a reason for hiding this comment

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

Aca desde odoo usamos mas el relativedelta, si queres buscate algunos ejemplos en le codigo, sino lo vemos

Copy link
Author

Choose a reason for hiding this comment

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

Pude ver algunos ejemplos, espero que me digas si usé correctamente la librería :)

@@ -0,0 +1,15 @@
{

Choose a reason for hiding this comment

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

Aca faltaria la version

Copy link
Author

Choose a reason for hiding this comment

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

añadida la versión!!

@gvd-adhoc
Copy link
Author

@iga-adhoc ya completé los cambios, gracias por la revisión! :)

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.

3 participants