-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
[11.0][MIG] quality_control #298
[11.0][MIG] quality_control #298
Conversation
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 just wanted to recall two old api.one methods that weren't still adapted to handle recordsets. You fixed most of them but I believe you missed these two.
Thanks for the migration.
|
||
@api.depends('inspection_lines', 'inspection_lines.success') | ||
def _compute_success(self): | ||
self.success = all([x.success for x in self.inspection_lines]) |
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.
adapt for recordsets
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.
done, thanks
|
||
@api.depends('object_id') | ||
def _compute_product_id(self): | ||
if self.object_id and self.object_id._name == 'product.product': |
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.
same
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.
done, thanks
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.
Thanks!
* Fixing problems
…d new concepts. * Triggers for product category * ACLs * Tolerances in questions * one2many copyable * Fix some views * Error on same tolerance * Colors on inspection lines * Unify inspection header data assignment in set_test method * key name in set_test * Change icon set
…les * Trigger line instead of test and user
* Expand AUTHORS * Fix permissions
* security modified * some demo info added * Added "partner_selectable" field, so that inspections can by made by partner * Little view fixing, field was oe_edit_only instead of label * Add partners to trigger lines * Tests added * Trigger lines with duplicated test cleaned quality_control: Propose to OCA quality_control: required changes quality_control: Fixing coveralls quality_control_stock: * added demo data * replaced unlink method by ondelete="cascade" * required changes
Making it a regular field, you can put any manual quantity in inspections
…pections only by quality control managers
* not take into account inactivated tests trigger lines * show action_cancel button in inspections even if it is autogenerated
`TestQualityControl` is failing on `QcTestTemplateCatergory._get_complete_name` when `name` is set as `False`.
Currently translated at 100.0% (127 of 127 strings) Translation: manufacture-10.0/manufacture-10.0-quality_control Translate-URL: https://translation.odoo-community.org/projects/manufacture-10-0/manufacture-10-0-quality_control/it/
* validation errors now raise exceptions.ValidationError, and other errors raise UserError * Treaceability of inspection status * using fa icons instead of gtk * get ir_sequence.get method is deprecated
3567946
to
105cf1b
Compare
@SalahAdDin If you add the text quality_control,static/description/icon.png to the field Web icon File from the Quality Control menu, the image appears in the dashboard |
But it must be done here in the module because other modules are working correctly. |
Please propose any of you the improvement. The module should adapt also to new design guidelines, but that's another history. |
@jhumfer Yes, you are right, |
Please |
cc @guadaltech