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

[13.0][MIG] quality_control #481

Closed
wants to merge 46 commits into from

Conversation

ps-tubtim
Copy link
Member

No description provided.

@Daniel-CA
Copy link

Hello,
Maybe this is not the best place to talk about this issue but is there any idea to separate the quality modules from the manufacture repository to avoid collisions with the Odoo quality modules? As you know Odoo has his own quality_control and there are some problems if you link the enterprise and manufacture branch in the same system.

@pedrobaeza
Copy link
Member

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.

@Daniel-CA
Copy link

Hi Pedro,
Yes I know that has not been a good practice from Odoo to name the module as our own, and we are doing like you say, not importing whole manufacture repository.

Copy link

@jarroyomorales jarroyomorales left a 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?

"category": "Quality control",
"license": "AGPL-3",
"summary": "Generic infrastructure for quality tests.",
"author": "OdooMRP team, " "Odoo Community Association (OCA)",

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)]},

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" />

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">

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"

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" />

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

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.

@pedrobaeza
Copy link
Member

For not collapsing with enterprise, we need to rename this module to quality_control_oca or similar.

oihane and others added 16 commits November 24, 2020 10:53
…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
SimoRubi and others added 23 commits November 24, 2020 10:53
* 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
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/
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/
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Quality Control",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"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()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return super(QcInspection, self).unlink()
return super().unlink()


class TestQualityControl(TransactionCase):
def setUp(self):
super(TestQualityControl, self).setUp()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
super(TestQualityControl, self).setUp()
super().setUp()

@pedrobaeza
Copy link
Member

Superseded by #595

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.