-
-
Notifications
You must be signed in to change notification settings - Fork 875
[17.0][MIG] project consumable #1569
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
base: 17.0
Are you sure you want to change the base?
Conversation
|
/ocabot migration project_consumable |
| ) | ||
|
|
||
| @api.onchange("type") | ||
| def _onchange_type(self): |
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.
Make project_ok fields compute/stored/readonly=False to avoid onchanges.
| class Project(models.Model): | ||
| _inherit = "project.project" | ||
|
|
||
| company_currency_id = fields.Many2one( |
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.
Is this at the right place (this module ?) ?
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.
I admit I can't remember why I'm not using the existing currency_id field in the monitory field... I've moved to the existing currency_id field
Thanks !
73b34f1 to
929e591
Compare
In the previous implementation project_id field was reused on account move line but a lot of the odoo code source assume that an account move line with a project_id is a timesheet, making very hard to distinguish Materials and Timesheet. Adding a consumable_project_id it avoid to breaks existing code make module much more easier to maintains
929e591 to
ed448e3
Compare
Migrate project consumable #1410 from v14.0
with main differences: