diff --git a/account.xml b/account.xml
index 79297a0ce4..3817036ab0 100644
--- a/account.xml
+++ b/account.xml
@@ -41,7 +41,7 @@ this repository contains the full copyright notices and license terms. -->
- other
+ stock
@@ -50,7 +50,7 @@ this repository contains the full copyright notices and license terms. -->
- other
+ stock
@@ -59,7 +59,7 @@ this repository contains the full copyright notices and license terms. -->
- other
+ stock
@@ -68,7 +68,7 @@ this repository contains the full copyright notices and license terms. -->
- other
+ stock
diff --git a/product.py b/product.py
index d9fff7dae8..5bec2bfe09 100644
--- a/product.py
+++ b/product.py
@@ -9,7 +9,7 @@ class Category(ModelSQL, ModelView):
account_stock = fields.Property(fields.Many2One('account.account',
'Account Stock', domain=[
- ('kind', '!=', 'view'),
+ ('kind', '=', 'stock'),
('company', '=', Eval('context', {}).get('company', 0)),
],
states={
@@ -19,7 +19,7 @@ class Category(ModelSQL, ModelView):
depends=['account_parent']))
account_stock_supplier = fields.Property(fields.Many2One('account.account',
'Account Stock Supplier', domain=[
- ('kind', '!=', 'view'),
+ ('kind', '=', 'stock'),
('company', '=', Eval('context', {}).get('company', 0)),
],
states={
@@ -29,7 +29,7 @@ class Category(ModelSQL, ModelView):
depends=['account_parent']))
account_stock_customer = fields.Property(fields.Many2One('account.account',
'Account Stock Customer', domain=[
- ('kind', '!=', 'view'),
+ ('kind', '=', 'stock'),
('company', '=', Eval('context', {}).get('company', 0)),
],
states={
@@ -39,7 +39,7 @@ class Category(ModelSQL, ModelView):
depends=['account_parent']))
account_stock_lost_found = fields.Property(fields.Many2One(
'account.account', 'Account Stock Lost and Found', domain=[
- ('kind', '!=', 'view'),
+ ('kind', '=', 'stock'),
('company', '=', Eval('context', {}).get('company', 0)),
],
states={
@@ -65,7 +65,7 @@ class Template(ModelSQL, ModelView):
account_stock = fields.Property(fields.Many2One('account.account',
'Account Stock',
domain=[
- ('kind', '!=', 'view'),
+ ('kind', '=', 'stock'),
('company', '=', Eval('context', {}).get('company', 0)),
],
states={
@@ -80,7 +80,7 @@ class Template(ModelSQL, ModelView):
account_stock_supplier = fields.Property(fields.Many2One('account.account',
'Account Stock Supplier',
domain=[
- ('kind', '!=', 'view'),
+ ('kind', '=', 'stock'),
('company', '=', Eval('context', {}).get('company', 0)),
],
states={
@@ -95,7 +95,7 @@ class Template(ModelSQL, ModelView):
account_stock_customer = fields.Property(fields.Many2One('account.account',
'Account Stock Customer',
domain=[
- ('kind', '!=', 'view'),
+ ('kind', '=', 'stock'),
('company', '=', Eval('context', {}).get('company', 0)),
],
states={
@@ -110,7 +110,7 @@ class Template(ModelSQL, ModelView):
account_stock_lost_found = fields.Property(fields.Many2One(
'account.account', 'Account Stock Lost and Found',
domain=[
- ('kind', '!=', 'view'),
+ ('kind', '=', 'stock'),
('company', '=', Eval('context', {}).get('company', 0)),
],
states={
diff --git a/tests/scenario_account_stock_continental.rst b/tests/scenario_account_stock_continental.rst
index 5c8c0c1e12..89808b44e6 100644
--- a/tests/scenario_account_stock_continental.rst
+++ b/tests/scenario_account_stock_continental.rst
@@ -110,7 +110,7 @@ Create chart of accounts::
... ('company', '=', company.id),
... ])
>>> stock, stock_supplier, stock_lost_found, stock_customer = Account.find([
- ... ('kind', '=', 'other'),
+ ... ('kind', '=', 'stock'),
... ('company', '=', company.id),
... ('name', 'like', 'Stock%'),
... ], order=[('name', 'ASC')])