[MIG] quality_control_team_oca: Migration to 14.0

This commit is contained in:
Kaynnan Lemes
2024-03-04 10:46:42 -03:00
parent 376d6e4439
commit 9b57d5ab67
4 changed files with 20 additions and 16 deletions

View File

@@ -4,7 +4,7 @@
"name": "Quality Control Team OCA", "name": "Quality Control Team OCA",
"summary": "Adds quality control teams to handle different quality " "summary": "Adds quality control teams to handle different quality "
"control workflows", "control workflows",
"version": "13.0.1.0.0", "version": "14.0.1.0.0",
"category": "Quality Control", "category": "Quality Control",
"website": "https://github.com/OCA/manufacture", "website": "https://github.com/OCA/manufacture",
"author": "Eficent, Odoo Community Association (OCA)", "author": "Eficent, Odoo Community Association (OCA)",

View File

@@ -1,13 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017 Eficent Business and IT Consulting Services S.L. <!-- Copyright 2017 Eficent Business and IT Consulting Services S.L.
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo> <odoo noupdate="0">
<data noupdate="0">
<record model="qc.team" id="qc_team_main"> <record model="qc.team" id="qc_team_main">
<field name="name">Main QC Team</field> <field name="name">Main QC Team</field>
<field name="member_ids" eval="[(4, ref('base.user_admin'))]" /> <field name="member_ids" eval="[(4, ref('base.user_admin'))]" />
</record> </record>
</data>
</odoo> </odoo>

View File

@@ -49,7 +49,7 @@ class QualityControlTeam(models.Model):
company_id = fields.Many2one( company_id = fields.Many2one(
comodel_name="res.company", comodel_name="res.company",
string="Company", string="Company",
default=lambda self: self.env["res.company"]._company_default_get("qc.team"), default=lambda self: self.env.company,
) )
user_id = fields.Many2one(comodel_name="res.users", string="Team Leader") user_id = fields.Many2one(comodel_name="res.users", string="Team Leader")
member_ids = fields.One2many( member_ids = fields.One2many(

View File

@@ -78,14 +78,21 @@
> >
<strong <strong
class="o_kanban_record_title" class="o_kanban_record_title"
><field name="name" /></strong> >
<field name="name" />
</strong>
</div> </div>
<a <a
t-if="! read_only_mode" t-if="! read_only_mode"
type="delete" type="delete"
class="text-danger" class="text-danger"
> >
<i class="fa fa-times" /> <i
class="fa fa-times"
aria-label="Unlink"
role="img"
title="Unlink"
/>
</a> </a>
</div> </div>
</div> </div>
@@ -125,7 +132,7 @@
<field name="model">qc.team</field> <field name="model">qc.team</field>
<field name="field_parent">child_ids</field> <field name="field_parent">child_ids</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="Quality Control Team"> <tree>
<field name="name" /> <field name="name" />
<field name="active" invisible="1" /> <field name="active" invisible="1" />
<field name="user_id" /> <field name="user_id" />
@@ -140,7 +147,8 @@
<field name="help" type="html"> <field name="help" type="html">
<p class="oe_view_nocontent_create"> <p class="oe_view_nocontent_create">
Click here to define a new quality control team. Click here to define a new quality control team.
</p><p> </p>
<p>
Use quality control team to organize your different Use quality control team to organize your different
departments into separate teams. Each team will work in departments into separate teams. Each team will work in
its own list of processes, stages... its own list of processes, stages...