-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] mrp_repair historical: Migration of mrp_repair_partner_lot to 16.0
- Loading branch information
Showing
17 changed files
with
908 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
====================== | ||
Mrp repair partner lot | ||
====================== | ||
|
||
* In repair orders new tag "Repair report", with new object | ||
"MRP repair customer lot". | ||
* This new object has the following fields: customer product code, product | ||
template, lot, quantity, description breakdown, cause, repair effectuate, | ||
repairable. | ||
* New report "Repair report". | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/avanzosc/mrp-repair-addons/issues>`_. In case of trouble, | ||
please check there if your issue has already been reported. If you spotted | ||
it first, help us smash it by providing detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
* Ana Juaristi <[email protected]> | ||
* Alfredo de la Fuente <[email protected]> | ||
|
||
Do not contact contributors directly about support or help with technical issues. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Copyright 2019 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright 2019 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
{ | ||
"name": "MRP Repair Partner Lot", | ||
"version": "8.0.1.2.0", | ||
"license": "AGPL-3", | ||
"author": "AvanzOSC", | ||
"website": "https://github.com/avanzosc/mrp-repair-addons", | ||
"contributors": [ | ||
"Ana Juaristi <[email protected]>", | ||
"Alfredo de la Fuente <[email protected]>", | ||
], | ||
"category": "Manufacturing", | ||
"depends": [ | ||
"stock", | ||
"mrp_repair", | ||
"product_supplierinfo_for_customer", | ||
"mrp_calendar_view", | ||
], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"report/mrp_repair_report.xml", | ||
"data/report_paperformat.xml", | ||
"views/mrp_repair_view.xml", | ||
"views/mrp_repair_customer_lot_view.xml", | ||
], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<openerp> | ||
<data> | ||
<record id="paperformat_mrp_repair_partner_lot" model="report.paperformat"> | ||
<field name="name">MRP repair partner lot</field> | ||
<field name="default" eval="True" /> | ||
<field name="format">A4</field> | ||
<field name="page_height">0</field> | ||
<field name="page_width">0</field> | ||
<field name="orientation">Landscape</field> | ||
<field name="margin_top">30</field> | ||
<field name="margin_bottom">10</field> | ||
<field name="margin_left">7</field> | ||
<field name="margin_right">7</field> | ||
<field name="header_line" eval="False" /> | ||
<field name="header_spacing">35</field> | ||
<field name="dpi">90</field> | ||
</record> | ||
<record id="action_report_mrp_repair_partner_lot" model="ir.actions.report.xml"> | ||
<field | ||
name="paperformat_id" | ||
ref="mrp_repair_partner_lot.paperformat_mrp_repair_partner_lot" | ||
/> | ||
</record> | ||
</data> | ||
</openerp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * mrp_repair_partner_lot | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 8.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-07-05 09:23+0000\n" | ||
"PO-Revision-Date: 2019-07-05 09:23+0000\n" | ||
"Last-Translator: <>\n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair:mrp_repair_partner_lot.view_repair_order_form_inh_partner_lot | ||
#: view:mrp.repair.customer.lot:mrp_repair_partner_lot.mrp_repair_customer_lot_view_form | ||
#: field:mrp.repair.customer.lot,cause:0 | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Cause" | ||
msgstr "Causa" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: help:mrp.repair.customer.lot,customer_id:0 | ||
msgid "Choose partner for whom the order will be invoiced and delivered." | ||
msgstr "Elija una empresa para la cual el pedido será facturado y entregado." | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: field:mrp.repair.customer.lot,create_uid:0 | ||
msgid "Created by" | ||
msgstr "Creado por" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: field:mrp.repair.customer.lot,create_date:0 | ||
msgid "Created on" | ||
msgstr "Creado el" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair.customer.lot:mrp_repair_partner_lot.mrp_repair_customer_lot_view_search | ||
#: field:mrp.repair.customer.lot,customer_id:0 | ||
msgid "Customer" | ||
msgstr "Cliente" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair:mrp_repair_partner_lot.view_repair_order_form_inh_partner_lot | ||
#: field:mrp.repair,customer_lot_ids:0 | ||
#: view:mrp.repair.customer.lot:mrp_repair_partner_lot.mrp_repair_customer_lot_view_tree | ||
msgid "Customer lots" | ||
msgstr "Lotes cliente" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair.customer.lot:mrp_repair_partner_lot.mrp_repair_customer_lot_view_search | ||
#: field:mrp.repair.customer.lot,partner_product_code:0 | ||
#: field:mrp.repair.customer.lot,product_code:0 | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Customer product code" | ||
msgstr "Código producto cliente" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair:mrp_repair_partner_lot.view_repair_order_form_inh_partner_lot | ||
#: view:mrp.repair.customer.lot:mrp_repair_partner_lot.mrp_repair_customer_lot_view_form | ||
#: field:mrp.repair.customer.lot,description_breakdown:0 | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Description breakdown" | ||
msgstr "Descripción avería" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair.customer.lot:mrp_repair_partner_lot.mrp_repair_customer_lot_view_search | ||
msgid "Group By" | ||
msgstr "Agrupar por" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: field:mrp.repair.customer.lot,id:0 | ||
msgid "ID" | ||
msgstr "ID" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: model:ir.model,name:mrp_repair_partner_lot.model_product_supplierinfo | ||
msgid "Information about a product supplier" | ||
msgstr "Información de un proveedor de producto" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Invoice address:" | ||
msgstr "Dirección de facturación:" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Invoice and shipping address:" | ||
msgstr "Dirección de facturación y de envío:" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: field:mrp.repair.customer.lot,write_uid:0 | ||
msgid "Last Updated by" | ||
msgstr "Última modificación por" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: field:mrp.repair.customer.lot,write_date:0 | ||
msgid "Last Updated on" | ||
msgstr "Última modificación el" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: field:mrp.repair.customer.lot,lot_id:0 | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Lot" | ||
msgstr "Lote" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair:mrp_repair_partner_lot.view_repair_order_form_inh_partner_lot | ||
#: view:mrp.repair.customer.lot:mrp_repair_partner_lot.mrp_repair_customer_lot_view_form | ||
msgid "MRP repair customer lot" | ||
msgstr "MRP reparación lote cliente" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: model:ir.actions.act_window,name:mrp_repair_partner_lot.action_mrp_repair_customer_lot_view | ||
#: model:ir.ui.menu,name:mrp_repair_partner_lot.mrp_repair_customer_lot_option_view | ||
msgid "MRP repair customer lots" | ||
msgstr "MRP reparación lotes cliente" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair:mrp_repair_partner_lot.view_repair_order_form_inh_partner_lot | ||
msgid "Notes" | ||
msgstr "Notas" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair.customer.lot:mrp_repair_partner_lot.mrp_repair_customer_lot_view_search | ||
#: field:mrp.repair.customer.lot,product_tmpl_id:0 | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Product template" | ||
msgstr "Plantilla producto" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: field:mrp.repair.customer.lot,quantity:0 | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Quantity" | ||
msgstr "Cantidad" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair.customer.lot:mrp_repair_partner_lot.mrp_repair_customer_lot_view_search | ||
msgid "Repair" | ||
msgstr "Reparación" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: model:ir.model,name:mrp_repair_partner_lot.model_mrp_repair | ||
msgid "Repair Order" | ||
msgstr "Orden de reparación" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Repair date:" | ||
msgstr "Fecha reparación:" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair:mrp_repair_partner_lot.view_repair_order_form_inh_partner_lot | ||
#: view:mrp.repair.customer.lot:mrp_repair_partner_lot.mrp_repair_customer_lot_view_form | ||
#: field:mrp.repair.customer.lot,repair_made:0 | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Repair made" | ||
msgstr "Reparación efectuada" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: field:mrp.repair.customer.lot,repair_id:0 | ||
msgid "Repair order" | ||
msgstr "Orden reparación" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: model:ir.actions.report.xml,name:mrp_repair_partner_lot.action_report_mrp_repair_partner_lot | ||
#: view:mrp.repair:mrp_repair_partner_lot.view_repair_order_form_inh_partner_lot | ||
msgid "Repair report" | ||
msgstr "Informe reparación" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Repair report N°:" | ||
msgstr "Informe de reparación N°:" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: field:mrp.repair.customer.lot,repairable:0 | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Repairable" | ||
msgstr "Reparable" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Responsible:" | ||
msgstr "Responsable:" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair.customer.lot:mrp_repair_partner_lot.mrp_repair_customer_lot_view_search | ||
msgid "Search mrp repair customer lots" | ||
msgstr "Buscar lotes cliente reparación" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "Shipping address :" | ||
msgstr "Dirección de envío :" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:website:mrp_repair_partner_lot.report_mrp_repair_partner_lot_printing | ||
msgid "VAT:" | ||
msgstr "NIF:" | ||
|
||
#. module: mrp_repair_partner_lot | ||
#: view:mrp.repair.customer.lot:mrp_repair_partner_lot.mrp_repair_customer_lot_view_search | ||
#: field:mrp.repair.customer.lot,repair_date:0 | ||
msgid "Repair date" | ||
msgstr "Fecha reparación" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright 2019 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
from . import mrp_repair | ||
from . import product_supplierinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
from odoo import api, fields, models | ||
|
||
|
||
class MrpRepairCustomerLot(models.Model): | ||
_name = "mrp.repair.customer.lot" | ||
_description = "MRP Repair Customer Lot" | ||
|
||
repair_id = fields.Many2one( | ||
comodel_name="mrp.repair", string="Repair Order", required=True | ||
) | ||
repair_date = fields.Date( | ||
string="Repair Date", related="repair_id.date_repair", store=True | ||
) | ||
customer_id = fields.Many2one( | ||
comodel_name="res.partner", | ||
string="Customer", | ||
related="repair_id.partner_id", | ||
store=True, | ||
) | ||
customer_product_code = fields.Char(string="Customer Product Code") | ||
lot_id = fields.Many2one( | ||
comodel_name="stock.production.lot", string="Lot/Serial Number", required=True | ||
) | ||
product_variant_id = fields.Many2one( | ||
comodel_name="product.product", string="Product Variant", required=True | ||
) | ||
product_template_id = fields.Many2one( | ||
comodel_name="product.template", | ||
string="Product Template", | ||
related="product_variant_id.product_tmpl_id", | ||
store=True, | ||
) | ||
internal_reference = fields.Char( | ||
string="Internal Reference", | ||
related="product_variant_id.default_code", | ||
store=True, | ||
) | ||
quantity = fields.Integer(string="Quantity") | ||
breakdown_description = fields.Text(string="Breakdown Description") | ||
cause = fields.Text(string="Cause") | ||
repair_made = fields.Text(string="Repair Made") | ||
repairable = fields.Boolean(string="Repairable") | ||
|
||
@api.onchange("lot_id") | ||
def _onchange_lot_id(self): | ||
"""Set the product variant when a lot is selected.""" | ||
for record in self: | ||
record.product_variant_id = record.lot_id.product_id |
Oops, something went wrong.