Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
[REF]
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain committed Jul 13, 2018
1 parent 48b6d5e commit d3b7cbe
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions product_category_recursive_property/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# coding: utf-8
# Copyright (C) 2013 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
Expand All @@ -15,7 +15,7 @@
'stock_account',
],
'demo': [
'demo/res_users.xml',
'demo/res_groups.xml',
'demo/product_category.xml',
],
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

<openerp><data>

<record id="base.user_root" model="res.users">
<field name="groups_id" eval="[
(4, ref('base.group_no_one')),
(4, ref('base.group_sale_manager'))]"/>
<record id="base.group_no_one" model="res.groups">
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>

<record id="base.group_sale_manager" model="res.groups">
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>

</data></openerp>
2 changes: 1 addition & 1 deletion product_category_recursive_property/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
# coding: utf-8
from . import product_category
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# coding: utf-8
# Copyright (C) 2013 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
Expand Down
4 changes: 2 additions & 2 deletions product_category_recursive_property/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
from . import test_product_category_recursive_property
# coding: utf-8
from . import test_module
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# -*- coding: utf-8 -*-
# coding: utf-8
# Copyright (C) 2017 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp.tests.common import TransactionCase


class TestProductCategoryRecursiveProperty(TransactionCase):
class TestModule(TransactionCase):

def setUp(self):
super(TestProductCategoryRecursiveProperty, self).setUp()
super(TestModule, self).setUp()
self.category_obj = self.env['product.category']
self.property_obj = self.env['ir.property']
self.mother_category = self.env.ref(
Expand Down

0 comments on commit d3b7cbe

Please sign in to comment.