Skip to content

Commit

Permalink
[FIX] Greenifying
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow authored and JordiBForgeFlow committed Jul 12, 2018
1 parent 704be75 commit 3295299
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
3 changes: 1 addition & 2 deletions account_operating_unit/tests/test_payment_operating_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# © 2016 Eficent Business and IT Consulting Services S.L.
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from openerp.addons.account_operating_unit.tests import\
test_account_operating_unit as test_ou
from ..tests import test_account_operating_unit as test_ou
import time


Expand Down
2 changes: 1 addition & 1 deletion hr_contract_operating_unit/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This module introduces the following features:
* Adds the Operating Unit (OU) to the Employee Contract.

* Security rules are defined to ensure that users can only see the Contracts of
that Operating Units in which they are allowed access to.
that Operating Units in which they are allowed access to.

Usage
=====
Expand Down
4 changes: 2 additions & 2 deletions procurement_operating_unit/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Procurement Operating Unit
This module introduces the following features:

- Implements global security rules on procurement orders so that a user can
only read procurement orders where the location is linked to an operating unit
that the user has access to.
only read procurement orders where the location is linked to an operating unit
that the user has access to.

Installation
============
Expand Down
3 changes: 1 addition & 2 deletions purchase_operating_unit/tests/test_po_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
# - Jordi Ballester Alomar
# © 2015 Serpent Consulting Services Pvt. Ltd. - Sudhir Arya
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from openerp.addons.purchase_operating_unit.tests import\
test_purchase_operating_unit as test_po_ou
from ..tests import test_purchase_operating_unit as test_po_ou


class TestPoSecurity(test_po_ou.TestPurchaseOperatingUnit):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@ def default_get(self, fields):
return res

@api.model
def _prepare_purchase_order(self, picking_type, location, company_id):
def _prepare_purchase_order(self, picking_type, company_id):
data = super(PurchaseRequestLineMakePurchaseOrder, self).\
_prepare_purchase_order(picking_type, location, company_id)
_prepare_purchase_order(picking_type, company_id)
if self.operating_unit_id:
data['requesting_operating_unit_id'] = \
self.operating_unit_id.id
data['operating_unit_id'] = \
self.operating_unit_id.id
data['requesting_operating_unit_id'] = self.operating_unit_id.id
data['operating_unit_id'] = self.operating_unit_id.id
return data

0 comments on commit 3295299

Please sign in to comment.