Skip to content

Commit df79b3a

Browse files
HviorForgeFlowOCA-git-bot
authored andcommitted
[IMP] purchase_request_tier_validation: black, isort
1 parent 6e0fe58 commit df79b3a

File tree

9 files changed

+24
-26
lines changed

9 files changed

+24
-26
lines changed

Diff for: purchase_request_tier_validation/README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Purchase Request Tier Validation
2323
:target: https://runbot.odoo-community.org/runbot/142/12.0
2424
:alt: Try me on Runbot
2525

26-
|badge1| |badge2| |badge3| |badge4| |badge5|
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
2727

2828
This module extends the functionality of Purchase Requests to support a tier validation process.
2929

@@ -83,7 +83,7 @@ Credits
8383
Authors
8484
~~~~~~~
8585

86-
* Eficent
86+
* ForgeFlow
8787

8888
Contributors
8989
~~~~~~~~~~~~

Diff for: purchase_request_tier_validation/__manifest__.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
# Copyright 2019 Eficent Business and IT Consulting Services S.L.
1+
# Copyright 2019-2020 ForgeFlow S.L.
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
33
{
44
"name": "Purchase Request Tier Validation",
55
"summary": "Extends the functionality of Purchase Requests to "
6-
"support a tier validation process.",
6+
"support a tier validation process.",
77
"version": "12.0.1.1.0",
88
"category": "Purchase Management",
99
"website": "https://github.com/OCA/purchase-workflow",
10-
"author": "Eficent, Odoo Community Association (OCA)",
10+
"author": "ForgeFlow, Odoo Community Association (OCA)",
1111
"license": "AGPL-3",
1212
"application": False,
1313
"installable": True,
14-
"depends": [
15-
"purchase_request",
16-
"base_tier_validation",
17-
],
14+
"depends": ["purchase_request", "base_tier_validation"],
1815
"data": [
1916
"data/purchase_request_tier_definition.xml",
2017
"views/purchase_request_view.xml",

Diff for: purchase_request_tier_validation/data/purchase_request_tier_definition.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<!-- Copyright 2019 Eficent Business and IT Consulting Services S.L.
2+
<!-- Copyright 2019-2020 ForgeFlow S.L.
33
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
44
<odoo noupdate="1">
55
<record id="purchase_request_default_tier_definition" model="tier.definition">
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Copyright 2019 Eficent Business and IT Consulting Services S.L.
1+
# Copyright 2019-2020 ForgeFlow S.L.
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
33
from odoo import api, models
44

55

66
class PurchaseRequest(models.Model):
77
_name = "purchase.request"
8-
_inherit = ['purchase.request', 'tier.validation']
9-
_state_from = ['draft']
10-
_state_to = ['approved']
8+
_inherit = ["purchase.request", "tier.validation"]
9+
_state_from = ["draft"]
10+
_state_to = ["approved"]
1111

1212
@api.model
1313
def _get_under_validation_exceptions(self):
1414
res = super(PurchaseRequest, self)._get_under_validation_exceptions()
15-
res.append('route_id')
15+
res.append("route_id")
1616
return res

Diff for: purchase_request_tier_validation/models/tier_definition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Eficent Business and IT Consulting Services S.L.
1+
# Copyright 2019-2020 ForgeFlow S.L.
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
33
from odoo import api, models
44

Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
* Adria Gil <[email protected]>
2-

Diff for: purchase_request_tier_validation/static/description/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ <h1><a class="toc-backref" href="#id5">Credits</a></h1>
434434
<div class="section" id="authors">
435435
<h2><a class="toc-backref" href="#id6">Authors</a></h2>
436436
<ul class="simple">
437-
<li>Eficent</li>
437+
<li>ForgeFlow</li>
438438
</ul>
439439
</div>
440440
<div class="section" id="contributors">
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
1+
# Copyright 2017-2020 ForgeFlow S.L.
22
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0).
33

44
from odoo.tests import common
@@ -9,13 +9,15 @@ def setUp(self):
99
super(TestPurchaseRequest, self).setUp()
1010

1111
# common models
12-
self.purchase_request = self.env['purchase.request']
13-
self.tier_definition = self.env['tier.definition']
12+
self.purchase_request = self.env["purchase.request"]
13+
self.tier_definition = self.env["tier.definition"]
1414

1515
def test_get_under_validation_exceptions(self):
16-
self.assertIn('route_id',
17-
self.purchase_request._get_under_validation_exceptions())
16+
self.assertIn(
17+
"route_id", self.purchase_request._get_under_validation_exceptions()
18+
)
1819

1920
def test_get_tier_validation_model_names(self):
20-
self.assertIn('purchase.request',
21-
self.tier_definition._get_tier_validation_model_names())
21+
self.assertIn(
22+
"purchase.request", self.tier_definition._get_tier_validation_model_names()
23+
)

Diff for: purchase_request_tier_validation/views/purchase_request_view.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- Copyright 2019 Eficent Business and IT Consulting Services S.L.
2+
<!-- Copyright 2019-2020 ForgeFlow S.L.
33
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
44
<odoo>
55

0 commit comments

Comments
 (0)