-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
[13.0][MIG] quality_control #481
Conversation
1ef1eaa
to
34d003c
Compare
Hello, |
Don't import whole OCA/manufacture repo, but the real issue is to have the same name. Odoo steals ours, because this module exists from before they created enterprise one, but yes, we have to adapt as they have the "power" in this. |
Hi Pedro, |
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.
Code and functional review. Some view comments
Also I dont understand how to create a qc_trigger
, what am I missing?
quality_control/__manifest__.py
Outdated
"category": "Quality control", | ||
"license": "AGPL-3", | ||
"summary": "Generic infrastructure for quality tests.", | ||
"author": "OdooMRP team, " "Odoo Community Association (OCA)", |
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.
Join strings
required=True, | ||
default="/", | ||
readonly=True, | ||
states={"draft": [("readonly", False)]}, |
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 think if we are using a sequence it should always be readonly
<field name="user" /> | ||
<field name="object_id" /> | ||
<field name="qty" /> | ||
<field name="product_id" /> |
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.
why showing product_id
if you can already see it on object_id
?
/> | ||
</header> | ||
<sheet> | ||
<div class="oe_button_box" name="buttons"> |
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.
This div is usually called name="button_box"
and it adds some css
<sheet> | ||
<div class="oe_button_box" name="buttons"> | ||
<button | ||
class="oe_inline oe_stat_button" |
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.
It is easier to read without the oe_inline
class="oe_highlight" | ||
/> | ||
or | ||
<button special="cancel" class="oe_link" string="Cancel" /> |
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.
class="btn-secondary" looks better IMO
</tree> | ||
</field> | ||
</group> | ||
<div |
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.
Maybe this div could be improved since values appear very big and its not clear what they are supposed to be.
For not collapsing with enterprise, we need to rename this module to |
* 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
* 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
…to quality_control module to avoid runbot warning
…riants + permissions (OCA#325)
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: manufacture-12.0/manufacture-12.0-quality_control Translate-URL: https://translation.odoo-community.org/projects/manufacture-12-0/manufacture-12-0-quality_control/
…r group by default.
Currently translated at 98.1% (154 of 157 strings) Translation: manufacture-12.0/manufacture-12.0-quality_control Translate-URL: https://translation.odoo-community.org/projects/manufacture-12-0/manufacture-12-0-quality_control/pt/
Fixed Quality Control Trigger 'trigger' selector in Product Template and Product Category.
Currently translated at 77.1% (121 of 157 strings) Translation: manufacture-12.0/manufacture-12.0-quality_control Translate-URL: https://translation.odoo-community.org/projects/manufacture-12-0/manufacture-12-0-quality_control/hr/
34d003c
to
9b1abd0
Compare
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Quality Control", |
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.
"name": "Quality Control", | |
"name": "Quality Control OCA", |
raise exceptions.UserError( | ||
_("You cannot remove an inspection that is not in draft state.") | ||
) | ||
return super(QcInspection, self).unlink() |
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.
return super(QcInspection, self).unlink() | |
return super().unlink() |
|
||
class TestQualityControl(TransactionCase): | ||
def setUp(self): | ||
super(TestQualityControl, self).setUp() |
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.
super(TestQualityControl, self).setUp() | |
super().setUp() |
Superseded by #595 |
No description provided.