diff --git a/crm_rma_advance_location/__openerp__.py b/crm_rma_advance_location/__openerp__.py
index 4b6dc66e..fa7f7a02 100644
--- a/crm_rma_advance_location/__openerp__.py
+++ b/crm_rma_advance_location/__openerp__.py
@@ -23,7 +23,8 @@
{'name': 'RMA Claims Advance Location',
'version': '1.0',
'category': 'Generic Modules/CRM & SRM',
- 'depends': ['crm_claim_rma'
+ 'depends': ['crm_claim_rma',
+ 'crm_rma_stock_location',
],
'author': 'Akretion',
'license': 'AGPL-3',
diff --git a/crm_rma_advance_location/stock.py b/crm_rma_advance_location/stock.py
index dcee0bf3..6727855a 100644
--- a/crm_rma_advance_location/stock.py
+++ b/crm_rma_advance_location/stock.py
@@ -27,7 +27,6 @@ class stock_warehouse(orm.Model):
_inherit = "stock.warehouse"
_columns = {
- 'lot_rma_id': fields.many2one('stock.location', 'Location RMA'),
'lot_carrier_loss_id': fields.many2one(
'stock.location',
'Location Carrier Loss'),
diff --git a/crm_rma_advance_location/stock_data.xml b/crm_rma_advance_location/stock_data.xml
index 41b8b1e1..3d48a250 100644
--- a/crm_rma_advance_location/stock_data.xml
+++ b/crm_rma_advance_location/stock_data.xml
@@ -9,11 +9,6 @@
internal
-
- RMA
- internal
-
-
Breakage Loss
internal
@@ -33,7 +28,6 @@
Default Values for : Stock Warehouse
-->
-
diff --git a/crm_rma_advance_location/stock_view.xml b/crm_rma_advance_location/stock_view.xml
index 44dfcb38..fd5554fe 100644
--- a/crm_rma_advance_location/stock_view.xml
+++ b/crm_rma_advance_location/stock_view.xml
@@ -32,10 +32,9 @@
crm_claim_rma.warehouse_form
stock.warehouse
-
+
-
-
+
diff --git a/crm_rma_stock_location/__init__.py b/crm_rma_stock_location/__init__.py
new file mode 100644
index 00000000..8a614c06
--- /dev/null
+++ b/crm_rma_stock_location/__init__.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Author: Guewen Baconnier
+# Copyright 2014 Camptocamp SA
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from . import stock_warehouse
diff --git a/crm_rma_stock_location/__openerp__.py b/crm_rma_stock_location/__openerp__.py
new file mode 100644
index 00000000..1b3e6d20
--- /dev/null
+++ b/crm_rma_stock_location/__openerp__.py
@@ -0,0 +1,46 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Author: Guewen Baconnier
+# Copyright 2014 Camptocamp SA
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+{'name': 'RMA Stock Location',
+ 'version': '1.0',
+ 'author': 'Camptocamp',
+ 'maintainer': 'Camptocamp',
+ 'license': 'AGPL-3',
+ 'category': 'Generic Modules/CRM & SRM',
+ 'depends': ['stock',
+ ],
+ 'description': """
+RMA Stock Location
+==================
+
+A RMA location can be selected on the warehouses.
+The product views displays the quantity available and virtual in this
+ RMA location (including the children locations).
+
+ """,
+ 'website': 'http://www.camptocamp.com',
+ 'data': ['stock_data.xml',
+ 'stock_warehouse_view.xml',
+ ],
+ 'test': [],
+ 'installable': True,
+ 'auto_install': False,
+ }
diff --git a/crm_rma_stock_location/stock_data.xml b/crm_rma_stock_location/stock_data.xml
new file mode 100644
index 00000000..d50b3f38
--- /dev/null
+++ b/crm_rma_stock_location/stock_data.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ RMA
+ internal
+
+
+
+
+
+
+
+
diff --git a/crm_rma_stock_location/stock_warehouse.py b/crm_rma_stock_location/stock_warehouse.py
new file mode 100644
index 00000000..13f32c31
--- /dev/null
+++ b/crm_rma_stock_location/stock_warehouse.py
@@ -0,0 +1,30 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Author: Guewen Baconnier
+# Copyright 2014 Camptocamp SA
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from openerp.osv import orm, fields
+
+
+class StockWarehouse(orm.Model):
+ _inherit = 'stock.warehouse'
+
+ _columns = {
+ 'lot_rma_id': fields.many2one('stock.location', 'Location RMA'),
+ }
diff --git a/crm_rma_stock_location/stock_warehouse_view.xml b/crm_rma_stock_location/stock_warehouse_view.xml
new file mode 100644
index 00000000..82c72292
--- /dev/null
+++ b/crm_rma_stock_location/stock_warehouse_view.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ view_warehouse_form
+ stock.warehouse
+
+
+
+
+
+
+
+
+
+