mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[MIG] quality_control_stock_oca: Migration to 17.0
This commit is contained in:
@@ -59,9 +59,8 @@ Credits
|
||||
Authors
|
||||
-------
|
||||
|
||||
* OdooMRP team
|
||||
* Tecnativa
|
||||
* AvanzOSC
|
||||
* Serv. Tecnol. Avanzados - Pedro M. Baeza
|
||||
* Agile Business Group
|
||||
|
||||
Contributors
|
||||
@@ -77,6 +76,10 @@ Contributors
|
||||
- Pedro M. Baeza
|
||||
- Carlos Roca
|
||||
|
||||
- `APSL-Nagarro <https://www.apsl.tech>`__:
|
||||
|
||||
- Antoni Marroig <amarroig@apsl.net>
|
||||
|
||||
Maintainers
|
||||
-----------
|
||||
|
||||
|
||||
@@ -3,12 +3,10 @@
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import models
|
||||
from odoo import api, SUPERUSER_ID
|
||||
|
||||
|
||||
def post_init_hook(cr, registry):
|
||||
def post_init_hook(env):
|
||||
# Create QC triggers
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
picking_type_ids = env["stock.picking.type"].sudo().search([])
|
||||
for picking_type_id in picking_type_ids:
|
||||
picking_type_id.sudo()._create_qc_trigger()
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
|
||||
{
|
||||
"name": "Quality control - Stock (OCA)",
|
||||
"version": "16.0.1.0.0",
|
||||
"version": "17.0.1.0.0",
|
||||
"category": "Quality control",
|
||||
"license": "AGPL-3",
|
||||
"author": "OdooMRP team, AvanzOSC, Serv. Tecnol. Avanzados - Pedro M. Baeza, "
|
||||
"author": "Tecnativa, AvanzOSC, "
|
||||
"Agile Business Group, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/manufacture",
|
||||
"depends": ["quality_control_oca", "stock"],
|
||||
|
||||
@@ -9,5 +9,5 @@ class QcTrigger(models.Model):
|
||||
_inherit = "qc.trigger"
|
||||
|
||||
picking_type_id = fields.Many2one(
|
||||
comodel_name="stock.picking.type", readonly=True, ondelete="cascade"
|
||||
comodel_name="stock.picking.type", ondelete="cascade"
|
||||
)
|
||||
|
||||
@@ -6,3 +6,5 @@
|
||||
- [Tecnativa](https://www.tecnativa.com):
|
||||
- Pedro M. Baeza
|
||||
- Carlos Roca
|
||||
- [APSL-Nagarro](https://www.apsl.tech):
|
||||
- Antoni Marroig \<<amarroig@apsl.net>\>
|
||||
@@ -404,9 +404,8 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>OdooMRP team</li>
|
||||
<li>Tecnativa</li>
|
||||
<li>AvanzOSC</li>
|
||||
<li>Serv. Tecnol. Avanzados - Pedro M. Baeza</li>
|
||||
<li>Agile Business Group</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -423,6 +422,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||
<li>Carlos Roca</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="reference external" href="https://www.apsl.tech">APSL-Nagarro</a>:<ul>
|
||||
<li>Antoni Marroig <<a class="reference external" href="mailto:amarroig@apsl.net">amarroig@apsl.net</a>></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
|
||||
@@ -54,7 +54,7 @@ class TestQualityControlStockOca(TestQualityControlOcaBase):
|
||||
move_form.product_uom_qty = 2
|
||||
cls.picking1 = picking_form.save()
|
||||
cls.picking1.action_confirm()
|
||||
cls.picking1.move_ids.move_line_ids.qty_done = 1
|
||||
cls.picking1.move_ids.move_line_ids.quantity = 1
|
||||
|
||||
@mute_logger("odoo.models.unlink")
|
||||
def test_inspection_create_for_product(self):
|
||||
|
||||
Reference in New Issue
Block a user