Skip to content

Commit

Permalink
[MIG] fieldservice_purchase: Migration to 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
baimont committed Apr 26, 2021
1 parent b251b21 commit 035541c
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 23 deletions.
16 changes: 8 additions & 8 deletions fieldservice_purchase/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ Field Service - Purchase
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github
:target: https://github.com/OCA/field-service/tree/12.0/fieldservice_purchase
:target: https://github.com/OCA/field-service/tree/13.0/fieldservice_purchase
:alt: OCA/field-service
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_purchase
:target: https://translation.odoo-community.org/projects/field-service-13-0/field-service-13-0-fieldservice_purchase
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/264/12.0
:target: https://runbot.odoo-community.org/runbot/264/13.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows you to link the Field Service App to the Purchases App.

Expand All @@ -37,7 +37,7 @@ Usage

To use this module, you need to:

* Go to Purchases > Purchase > Vendor Pricelist
* Go to Purchases > Configuration > Vendor Pricelist
* Select or create a Vendor Pricelist and set the Vendor to an FSM Worker
* Go to Field Service > Master Data > Workers
* Open the Worker that was selected on your Vendor Pricelist
Expand All @@ -55,7 +55,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/field-service/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/field-service/issues/new?body=module:%20fieldservice_purchase%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_purchase%0Aversion:%2013.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.

Expand Down Expand Up @@ -99,8 +99,8 @@ promote its widespread use.

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-osi-scampbell|
|maintainer-osi-scampbell|

This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/12.0/fieldservice_purchase>`_ project on GitHub.
This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/13.0/fieldservice_purchase>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion fieldservice_purchase/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"website": "https://github.com/OCA/field-service",
"category": "Field Service",
"license": "AGPL-3",
"version": "12.0.1.1.0",
"version": "13.0.1.0.0",
"depends": ["fieldservice", "purchase"],
"data": ["security/ir.model.access.csv", "views/fsm_person.xml"],
"development_status": "Beta",
Expand Down
2 changes: 1 addition & 1 deletion fieldservice_purchase/i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-11-26 14:27+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion fieldservice_purchase/i18n/es_CL.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-01-16 22:38+0000\n"
"Last-Translator: Nelson Ramírez Sánchez <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion fieldservice_purchase/i18n/fieldservice_purchase.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion fieldservice_purchase/i18n/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-02-05 11:13+0000\n"
"Last-Translator: Marcel Savegnago <[email protected]>\n"
Expand Down
4 changes: 1 addition & 3 deletions fieldservice_purchase/models/fsm_person.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (C) 2019 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import api, fields, models
from odoo import fields, models


class FSMPerson(models.Model):
Expand All @@ -11,14 +11,12 @@ class FSMPerson(models.Model):
compute="_compute_pricelist_count", string="# Pricelists"
)

@api.multi
def _compute_pricelist_count(self):
for worker in self:
worker.pricelist_count = self.env["product.supplierinfo"].search_count(
[("name", "=", worker.partner_id.id)]
)

@api.multi
def action_view_pricelists(self):
for worker in self:
pricelist = self.env["product.supplierinfo"].search(
Expand Down
2 changes: 1 addition & 1 deletion fieldservice_purchase/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
To use this module, you need to:

* Go to Purchases > Purchase > Vendor Pricelist
* Go to Purchases > Configuration > Vendor Pricelist
* Select or create a Vendor Pricelist and set the Vendor to an FSM Worker
* Go to Field Service > Master Data > Workers
* Open the Worker that was selected on your Vendor Pricelist
Expand Down
6 changes: 3 additions & 3 deletions fieldservice_purchase/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Field Service - Purchase</h1>
!! 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/field-service/tree/12.0/fieldservice_purchase"><img alt="OCA/field-service" src="https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_purchase"><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/264/12.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/field-service/tree/13.0/fieldservice_purchase"><img alt="OCA/field-service" src="https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/field-service-13-0/field-service-13-0-fieldservice_purchase"><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/264/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to link the Field Service App to the Purchases App.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand Down Expand Up @@ -405,7 +405,7 @@ <h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/field-service/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/field-service/issues/new?body=module:%20fieldservice_purchase%0Aversion:%2012.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/field-service/issues/new?body=module:%20fieldservice_purchase%0Aversion:%2013.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">
Expand Down Expand Up @@ -439,7 +439,7 @@ <h2><a class="toc-backref" href="#id8">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external" href="https://github.com/osi-scampbell"><img alt="osi-scampbell" src="https://github.com/osi-scampbell.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/field-service/tree/12.0/fieldservice_purchase">OCA/field-service</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/field-service/tree/13.0/fieldservice_purchase">OCA/field-service</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>
Expand Down
3 changes: 0 additions & 3 deletions fieldservice_purchase/views/fsm_person.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
/>
</button>
</div>
<field name="calendar_id" position="after">
<field name="supplier" />
</field>
</field>
</record>
</odoo>

0 comments on commit 035541c

Please sign in to comment.