Skip to content

Conversation

mathieudelva
Copy link
Member

No description provided.

class PurchaseReport(models.Model):
_inherit = "purchase.report"

date_planned = fields.Datetime(compute="_compute_date_planned", store=True)
Copy link
Member

Choose a reason for hiding this comment

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

you do not have to create a computed field. it's just a normal field and as the model is based on a sql view the data will be here (with the override of _select and _group_by)

Copy link
Member

@sebastienbeau sebastienbeau left a comment

Choose a reason for hiding this comment

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

minor change
Can you move this in oca : https://github.com/akretion/purchase-workflow ?

@mathieudelva
Copy link
Member Author

@sebastienbeau no because the module depends on purchase_usability

@sebastienbeau
Copy link
Member

@sebastienbeau no because the module depends on purchase_usability

Indeed I didn't see that the tree wview was added by odoo-usability.

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