← Back to team overview

openerp-community team mailing list archive

lp:~vauxoo/openerp-product-attributes/7.0-prod_vol_weight-dev-humbertoarocha into lp:openerp-product-attributes

 

hbto [Vauxoo] http://www.vauxoo.com has proposed merging lp:~vauxoo/openerp-product-attributes/7.0-prod_vol_weight-dev-humbertoarocha into lp:openerp-product-attributes.

Requested reviews:
  Nhomar - Vauxoo (nhomar)

For more details, see:
https://code.launchpad.net/~vauxoo/openerp-product-attributes/7.0-prod_vol_weight-dev-humbertoarocha/+merge/189956

Hello Comm Guys,

We want to submit the following module,
product_volumentric_weight, to your review,

be aware that we want to added new features
to this module in the near features but these
have been keep away this submission due to the
fact that there is still some agreements to be reached

in the following discussion in this merge proposal.

https://code.launchpad.net/~sebastien.beau/openerp-product-attributes/openerp-product-attributes-product-dimension/+merge/171181

In the meantime the field that bears in this module
is a plain float, later it will evolve into functional float.

Best Regards.
-- 
https://code.launchpad.net/~vauxoo/openerp-product-attributes/7.0-prod_vol_weight-dev-humbertoarocha/+merge/189956
Your team OpenERP Community is subscribed to branch lp:openerp-product-attributes.
=== added directory 'product_volumetric_weight'
=== added file 'product_volumetric_weight/__init__.py'
--- product_volumetric_weight/__init__.py	1970-01-01 00:00:00 +0000
+++ product_volumetric_weight/__init__.py	2013-10-08 20:05:19 +0000
@@ -0,0 +1,26 @@
+#!/usr/bin/python
+# -*- encoding: utf-8 -*-
+###############################################################################
+#    Module Writen to OpenERP, Open Source Management Solution
+#    Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
+#    All Rights Reserved
+############# Credits #########################################################
+#    Coded by: Yanina Aular <yani@xxxxxxxxxx>
+#    Planified by: Humberto Arocha <hbto@xxxxxxxxxx>
+#    Audited by: Humberto Arocha <hbto@xxxxxxxxxx>
+###############################################################################
+#    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 <http://www.gnu.org/licenses/>.
+###############################################################################
+import model
+import wizard

=== added file 'product_volumetric_weight/__openerp__.py'
--- product_volumetric_weight/__openerp__.py	1970-01-01 00:00:00 +0000
+++ product_volumetric_weight/__openerp__.py	2013-10-08 20:05:19 +0000
@@ -0,0 +1,48 @@
+#!/usr/bin/python
+# -*- encoding: utf-8 -*-
+###############################################################################
+#    Module Writen to OpenERP, Open Source Management Solution
+#    Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
+#    All Rights Reserved
+############# Credits #########################################################
+#    Coded by: Yanina Aular <yani@xxxxxxxxxx>
+#    Planified by: Humberto Arocha <hbto@xxxxxxxxxx>
+#    Audited by: Humberto Arocha <hbto@xxxxxxxxxx>
+###############################################################################
+#    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 <http://www.gnu.org/licenses/>.
+###############################################################################
+
+{
+    'name': 'Product Volumetric',
+    'version': '1.0',
+    'author': 'Vauxoo',
+    'website': 'http://www.vauxoo.com/',
+    'category': 'product',
+    'summary' : 'Added field volumetric weight to the product',
+    'description': '''
+Product Dimensions
+==================
+
+With this module, field volumetric weight is added to model product.
+
+''',
+    'depends': ['base', 'product'],
+    'data': [
+        'view/product_view.xml',
+        ],
+    'demo': [],
+    'test': [],
+    'active': False,
+    'installable': True,
+}

=== added directory 'product_volumetric_weight/data'
=== added directory 'product_volumetric_weight/demo'
=== added directory 'product_volumetric_weight/doc'
=== added directory 'product_volumetric_weight/doc/images'
=== added directory 'product_volumetric_weight/i18n'
=== added directory 'product_volumetric_weight/model'
=== added file 'product_volumetric_weight/model/__init__.py'
--- product_volumetric_weight/model/__init__.py	1970-01-01 00:00:00 +0000
+++ product_volumetric_weight/model/__init__.py	2013-10-08 20:05:19 +0000
@@ -0,0 +1,26 @@
+#!/usr/bin/python
+# -*- encoding: utf-8 -*-
+###############################################################################
+#    Module Writen to OpenERP, Open Source Management Solution
+#    Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
+#    All Rights Reserved
+############# Credits #########################################################
+#    Coded by: Yanina Aular <yani@xxxxxxxxxx>
+#    Planified by: Humberto Arocha <hbto@xxxxxxxxxx>
+#    Audited by: Humberto Arocha <hbto@xxxxxxxxxx>
+###############################################################################
+#    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 <http://www.gnu.org/licenses/>.
+###############################################################################
+
+import product

=== added file 'product_volumetric_weight/model/product.py'
--- product_volumetric_weight/model/product.py	1970-01-01 00:00:00 +0000
+++ product_volumetric_weight/model/product.py	2013-10-08 20:05:19 +0000
@@ -0,0 +1,37 @@
+#!/usr/bin/python
+# -*- encoding: utf-8 -*-
+###############################################################################
+#    Module Writen to OpenERP, Open Source Management Solution
+#    Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
+#    All Rights Reserved
+############# Credits #########################################################
+#    Coded by: Yanina Aular <yani@xxxxxxxxxx>
+#    Planified by: Humberto Arocha <hbto@xxxxxxxxxx>
+#    Audited by: Humberto Arocha <hbto@xxxxxxxxxx>
+###############################################################################
+#    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 <http://www.gnu.org/licenses/>.
+###############################################################################
+
+from openerp.osv import fields, osv
+from openerp.tools.translate import _
+from openerp import tools
+import datetime
+
+
+class product_product(osv.Model):
+    _inherit = 'product.product'
+    _columns = {
+            'volumetric_weight': fields.float('Volumetric Weight', help='Volumetric Weight per Unit'), 
+        }
+    

=== added directory 'product_volumetric_weight/report'
=== added directory 'product_volumetric_weight/security'
=== added directory 'product_volumetric_weight/static'
=== added directory 'product_volumetric_weight/static/description'
=== added file 'product_volumetric_weight/static/description/index.html'
=== added directory 'product_volumetric_weight/static/src'
=== added directory 'product_volumetric_weight/static/src/css'
=== added directory 'product_volumetric_weight/static/src/img'
=== added file 'product_volumetric_weight/static/src/img/icon.png'
Binary files product_volumetric_weight/static/src/img/icon.png	1970-01-01 00:00:00 +0000 and product_volumetric_weight/static/src/img/icon.png	2013-10-08 20:05:19 +0000 differ
=== added directory 'product_volumetric_weight/static/src/js'
=== added directory 'product_volumetric_weight/static/src/xml'
=== added directory 'product_volumetric_weight/test'
=== added directory 'product_volumetric_weight/view'
=== added file 'product_volumetric_weight/view/product_view.xml'
--- product_volumetric_weight/view/product_view.xml	1970-01-01 00:00:00 +0000
+++ product_volumetric_weight/view/product_view.xml	2013-10-08 20:05:19 +0000
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+        <record id="product_volumetric_form_view" model="ir.ui.view">         
+            <field name="name">product.product</field>            
+            <field name="model">product.product</field>                             
+            <field name="inherit_id" ref="product.product_normal_form_view"/>             
+            <field name="arch" type="xml">                                      
+                <xpath expr="//page[@string='Information']" position="inside">
+                    <group string="Dimensions of Unit">
+                        <field name="volumetric_weight"/>
+                    </group>
+                </xpath>                                                        
+            </field>                                                            
+        </record>
+    </data>
+</openerp>

=== added directory 'product_volumetric_weight/wizard'
=== added file 'product_volumetric_weight/wizard/__init__.py'
--- product_volumetric_weight/wizard/__init__.py	1970-01-01 00:00:00 +0000
+++ product_volumetric_weight/wizard/__init__.py	2013-10-08 20:05:19 +0000
@@ -0,0 +1,25 @@
+#!/usr/bin/python
+# -*- encoding: utf-8 -*-
+###############################################################################
+#    Module Writen to OpenERP, Open Source Management Solution
+#    Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
+#    All Rights Reserved
+############# Credits #########################################################
+#    Coded by: Yanina Aular <yani@xxxxxxxxxx>
+#    Planified by: Humberto Arocha <hbto@xxxxxxxxxx>
+#    Audited by: Humberto Arocha <hbto@xxxxxxxxxx>
+###############################################################################
+#    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 <http://www.gnu.org/licenses/>.
+###############################################################################
+

=== added directory 'product_volumetric_weight/workflow'

Follow ups