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

[14.0][ADD] purchase_report_date_planned #215

Open
wants to merge 4 commits into
base: 14.0
Choose a base branch
from

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