[MIG][WIP][12.0] agreement_mrp

This commit is contained in:
Murtuza Saleh
2019-03-28 15:50:51 +05:30
committed by Murtaza Mithaiwala
parent 53ab91abd3
commit 9a004bd4e8
14 changed files with 309 additions and 49 deletions

View File

@@ -14,13 +14,13 @@ Agreement - MRP
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github
:target: https://github.com/OCA/contract/tree/11.0/agreement_mrp
:target: https://github.com/OCA/contract/tree/12.0/agreement_mrp
:alt: OCA/contract
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-agreement_mrp
:target: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_mrp
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/110/11.0
:target: https://runbot.odoo-community.org/runbot/110/12.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -59,7 +59,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/contract/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/contract/issues/new?body=module:%20agreement_mrp%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/contract/issues/new?body=module:%20agreement_mrp%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
@@ -75,6 +75,7 @@ Contributors
~~~~~~~~~~~~
* Sandip Mangukiya <smangukiya@opensourceintegrators.com>
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
Other credits
~~~~~~~~~~~~~
@@ -107,6 +108,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-smangukiya| |maintainer-max3903|
This module is part of the `OCA/contract <https://github.com/OCA/contract/tree/11.0/agreement_mrp>`_ project on GitHub.
This module is part of the `OCA/contract <https://github.com/OCA/contract/tree/12.0/agreement_mrp>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -4,13 +4,13 @@
{
'name': 'Agreement - MRP',
'summary': 'Link manufacturing orders to an agreement',
'version': '11.0.0.0.1',
'version': '12.0.1.0.0',
'category': 'Contract',
'author': 'Open Source Integrators, '
'Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/contract',
'depends': [
'agreement',
'agreement_serviceprofile',
'mrp',
],
'data': [

View File

@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
@@ -14,22 +14,23 @@ msgstr ""
"Plural-Forms: \n"
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_agreement_mo_count
#: model:ir.model.fields,field_description:agreement_mrp.field_agreement__mo_count
msgid "# MOs"
msgstr ""
#. module: agreement_mrp
#: model:ir.ui.view,arch_db:agreement_mrp.partner_agreement_form_view
#: model_terms:ir.ui.view,arch_db:agreement_mrp.partner_agreement_form_view
msgid "<span class=\"o_stat_text\">MOs</span>"
msgstr ""
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production_agreement_id
#: model:ir.model,name:agreement_mrp.model_agreement
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__agreement_id
msgid "Agreement"
msgstr ""
#. module: agreement_mrp
#: model:ir.actions.act_window,help:agreement_mrp.action_mrp_production_agreement_specific
#: model_terms:ir.actions.act_window,help:agreement_mrp.action_mrp_production_agreement_specific
msgid "Create MOs"
msgstr ""
@@ -40,17 +41,12 @@ msgstr ""
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_mrp_production
msgid "Manufacturing Order"
msgid "Production Order"
msgstr ""
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production_serviceprofile_id
#: model:ir.ui.view,arch_db:agreement_mrp.view_mrp_production_filter_agreement
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__serviceprofile_id
#: model_terms:ir.ui.view,arch_db:agreement_mrp.view_mrp_production_filter_agreement
msgid "Service Profile"
msgstr ""
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_agreement
msgid "agreement"
msgstr ""

View File

@@ -1,12 +1,12 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * agreement_mrp
# * agreement_mrp
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-01-11 17:41+0000\n"
"PO-Revision-Date: 2019-06-28 13:42+0000\n"
"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\n"
"Language-Team: none\n"
"Language: de\n"
@@ -14,25 +14,26 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.3\n"
"X-Generator: Weblate 3.6.1\n"
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_agreement_mo_count
#: model:ir.model.fields,field_description:agreement_mrp.field_agreement__mo_count
msgid "# MOs"
msgstr "# Fertigungsaufträge"
#. module: agreement_mrp
#: model:ir.ui.view,arch_db:agreement_mrp.partner_agreement_form_view
#: model_terms:ir.ui.view,arch_db:agreement_mrp.partner_agreement_form_view
msgid "<span class=\"o_stat_text\">MOs</span>"
msgstr "<span class=\"o_stat_text\">Fertigungsaufträge</span>"
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production_agreement_id
#: model:ir.model,name:agreement_mrp.model_agreement
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__agreement_id
msgid "Agreement"
msgstr "Vereinbarung"
#. module: agreement_mrp
#: model:ir.actions.act_window,help:agreement_mrp.action_mrp_production_agreement_specific
#: model_terms:ir.actions.act_window,help:agreement_mrp.action_mrp_production_agreement_specific
msgid "Create MOs"
msgstr "Fertigungsaufträge anlegen"
@@ -43,16 +44,14 @@ msgstr "Fertigungsaufträge"
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_mrp_production
msgid "Manufacturing Order"
msgid "Production Order"
msgstr "Fertigungsauftrag"
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production_serviceprofile_id
#: model:ir.ui.view,arch_db:agreement_mrp.view_mrp_production_filter_agreement
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__serviceprofile_id
#: model_terms:ir.ui.view,arch_db:agreement_mrp.view_mrp_production_filter_agreement
msgid "Service Profile"
msgstr "Dienstleistungsprofil"
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_agreement
msgid "agreement"
msgstr "Vereinbarung"
#~ msgid "agreement"
#~ msgstr "Vereinbarung"

52
agreement_mrp/i18n/es.po Normal file
View File

@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * agreement_mrp
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_agreement__mo_count
msgid "# MOs"
msgstr ""
#. module: agreement_mrp
#: model_terms:ir.ui.view,arch_db:agreement_mrp.partner_agreement_form_view
msgid "<span class=\"o_stat_text\">MOs</span>"
msgstr ""
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_agreement
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__agreement_id
msgid "Agreement"
msgstr ""
#. module: agreement_mrp
#: model_terms:ir.actions.act_window,help:agreement_mrp.action_mrp_production_agreement_specific
msgid "Create MOs"
msgstr ""
#. module: agreement_mrp
#: model:ir.actions.act_window,name:agreement_mrp.action_mrp_production_agreement_specific
msgid "Manufacture Orders"
msgstr ""
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_mrp_production
msgid "Production Order"
msgstr ""
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__serviceprofile_id
#: model_terms:ir.ui.view,arch_db:agreement_mrp.view_mrp_production_filter_agreement
msgid "Service Profile"
msgstr ""

52
agreement_mrp/i18n/fr.po Normal file
View File

@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * agreement_mrp
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_agreement__mo_count
msgid "# MOs"
msgstr ""
#. module: agreement_mrp
#: model_terms:ir.ui.view,arch_db:agreement_mrp.partner_agreement_form_view
msgid "<span class=\"o_stat_text\">MOs</span>"
msgstr ""
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_agreement
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__agreement_id
msgid "Agreement"
msgstr ""
#. module: agreement_mrp
#: model_terms:ir.actions.act_window,help:agreement_mrp.action_mrp_production_agreement_specific
msgid "Create MOs"
msgstr ""
#. module: agreement_mrp
#: model:ir.actions.act_window,name:agreement_mrp.action_mrp_production_agreement_specific
msgid "Manufacture Orders"
msgstr ""
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_mrp_production
msgid "Production Order"
msgstr ""
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__serviceprofile_id
#: model_terms:ir.ui.view,arch_db:agreement_mrp.view_mrp_production_filter_agreement
msgid "Service Profile"
msgstr ""

52
agreement_mrp/i18n/it.po Normal file
View File

@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * agreement_mrp
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_agreement__mo_count
msgid "# MOs"
msgstr ""
#. module: agreement_mrp
#: model_terms:ir.ui.view,arch_db:agreement_mrp.partner_agreement_form_view
msgid "<span class=\"o_stat_text\">MOs</span>"
msgstr ""
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_agreement
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__agreement_id
msgid "Agreement"
msgstr ""
#. module: agreement_mrp
#: model_terms:ir.actions.act_window,help:agreement_mrp.action_mrp_production_agreement_specific
msgid "Create MOs"
msgstr ""
#. module: agreement_mrp
#: model:ir.actions.act_window,name:agreement_mrp.action_mrp_production_agreement_specific
msgid "Manufacture Orders"
msgstr ""
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_mrp_production
msgid "Production Order"
msgstr ""
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__serviceprofile_id
#: model_terms:ir.ui.view,arch_db:agreement_mrp.view_mrp_production_filter_agreement
msgid "Service Profile"
msgstr ""

View File

@@ -0,0 +1,54 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * agreement_mrp
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-02-12 05:03+0000\n"
"Last-Translator: Marcel Savegnago <marcel.savegnago@gmail.com>\n"
"Language-Team: none\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 3.10\n"
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_agreement__mo_count
msgid "# MOs"
msgstr "# OPs"
#. module: agreement_mrp
#: model_terms:ir.ui.view,arch_db:agreement_mrp.partner_agreement_form_view
msgid "<span class=\"o_stat_text\">MOs</span>"
msgstr "<span class=\"o_stat_text\">OPs</span>"
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_agreement
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__agreement_id
msgid "Agreement"
msgstr "Acordo"
#. module: agreement_mrp
#: model_terms:ir.actions.act_window,help:agreement_mrp.action_mrp_production_agreement_specific
msgid "Create MOs"
msgstr "Criar OPs"
#. module: agreement_mrp
#: model:ir.actions.act_window,name:agreement_mrp.action_mrp_production_agreement_specific
msgid "Manufacture Orders"
msgstr "Ordens de Fabricação"
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_mrp_production
msgid "Production Order"
msgstr "Ordem de Produção"
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__serviceprofile_id
#: model_terms:ir.ui.view,arch_db:agreement_mrp.view_mrp_production_filter_agreement
msgid "Service Profile"
msgstr "Perfil de Serviço"

View File

@@ -0,0 +1,54 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * agreement_mrp
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-09-04 18:23+0000\n"
"Last-Translator: 黎伟杰 <674416404@qq.com>\n"
"Language-Team: none\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 3.8\n"
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_agreement__mo_count
msgid "# MOs"
msgstr "# 制造订单"
#. module: agreement_mrp
#: model_terms:ir.ui.view,arch_db:agreement_mrp.partner_agreement_form_view
msgid "<span class=\"o_stat_text\">MOs</span>"
msgstr "<span class=\"o_stat_text\">制造订单</span>"
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_agreement
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__agreement_id
msgid "Agreement"
msgstr "协议"
#. module: agreement_mrp
#: model_terms:ir.actions.act_window,help:agreement_mrp.action_mrp_production_agreement_specific
msgid "Create MOs"
msgstr "创建制造订单"
#. module: agreement_mrp
#: model:ir.actions.act_window,name:agreement_mrp.action_mrp_production_agreement_specific
msgid "Manufacture Orders"
msgstr "制造订单"
#. module: agreement_mrp
#: model:ir.model,name:agreement_mrp.model_mrp_production
msgid "Production Order"
msgstr "生产单"
#. module: agreement_mrp
#: model:ir.model.fields,field_description:agreement_mrp.field_mrp_production__serviceprofile_id
#: model_terms:ir.ui.view,arch_db:agreement_mrp.view_mrp_production_filter_agreement
msgid "Service Profile"
msgstr "服务资料"

View File

@@ -11,10 +11,6 @@ class Agreement(models.Model):
@api.multi
def _compute_mo_count(self):
data = self.env['mrp.production'].read_group(
[('agreement_id', 'in', self.ids)],
['agreement_id'], ['agreement_id'])
count_data = dict((item['agreement_id'][0],
item['agreement_id_count']) for item in data)
for agreement in self:
agreement.mo_count = count_data.get(agreement.id, 0)
for ag_rec in self:
ag_rec.mo_count = self.env['mrp.production'].search_count(
[('agreement_id', 'in', ag_rec.ids)])

View File

@@ -1 +1,2 @@
* Sandip Mangukiya <smangukiya@opensourceintegrators.com>
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>

View File

@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<title>Agreement - MRP</title>
<style type="text/css">
@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/contract/tree/11.0/agreement_mrp"><img alt="OCA/contract" src="https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-agreement_mrp"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/110/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/contract/tree/12.0/agreement_mrp"><img alt="OCA/contract" src="https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_mrp"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/110/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>Odoo Agreement App does not provide an easy way to access manufacturing orders
related to an agreement. Some organizations needs to have a quick access to the
production orders to track the performance of an agreement.</p>
@@ -408,7 +408,7 @@ adds a smart button on the agreement to look at the list of related MOs.</p>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/contract/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/contract/issues/new?body=module:%20agreement_mrp%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/contract/issues/new?body=module:%20agreement_mrp%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
@@ -423,6 +423,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<h2><a class="toc-backref" href="#id6">Contributors</a></h2>
<ul class="simple">
<li>Sandip Mangukiya &lt;<a class="reference external" href="mailto:smangukiya&#64;opensourceintegrators.com">smangukiya&#64;opensourceintegrators.com</a>&gt;</li>
<li>Serpent Consulting Services Pvt. Ltd. &lt;<a class="reference external" href="mailto:support&#64;serpentcs.com">support&#64;serpentcs.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="other-credits">
@@ -441,7 +442,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external" href="https://github.com/smangukiya"><img alt="smangukiya" src="https://github.com/smangukiya.png?size=40px" /></a> <a class="reference external" href="https://github.com/max3903"><img alt="max3903" src="https://github.com/max3903.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/contract/tree/11.0/agreement_mrp">OCA/contract</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/contract/tree/12.0/agreement_mrp">OCA/contract</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.actions.act_window"
id="action_mrp_production_agreement_specific">
<record id="action_mrp_production_agreement_specific"
model="ir.actions.act_window">
<field name="name">Manufacture Orders</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.production</field>
@@ -19,7 +19,8 @@
<record id="partner_agreement_form_view" model="ir.ui.view">
<field name="name">agreement.form.mrp</field>
<field name="model">agreement</field>
<field name="inherit_id" ref="agreement.partner_agreement_form_view"/>
<field name="inherit_id"
ref="agreement_legal.partner_agreement_form_view"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button name="%(action_mrp_production_agreement_specific)d"

View File

@@ -21,7 +21,8 @@
<field name="inherit_id" ref="mrp.view_mrp_production_filter"/>
<field name="arch" type="xml">
<xpath expr="//group" position="inside">
<filter string="Service Profile" domain="[]"
<filter string="Service Profile" name="serviceprofile_id"
domain="[]"
context="{'group_by':'serviceprofile_id'}"/>
</xpath>
</field>