Willy Andres Gomez Solorzano has proposed merging lp:~wg.clearcorp/openerp-ccorp-addons/6.1-product_cost_group into lp:openerp-ccorp-addons.
Requested reviews: Ronald Rubi (rr.clearcorp) For more details, see: https://code.launchpad.net/~wg.clearcorp/openerp-ccorp-addons/6.1-product_cost_group/+merge/137073 [ADD]Added product_cost_group to hide/show product cost according to ACL's -- https://code.launchpad.net/~wg.clearcorp/openerp-ccorp-addons/6.1-product_cost_group/+merge/137073 Your team CLEARCORP development team is subscribed to branch lp:openerp-ccorp-addons.
=== added directory 'product_cost_group' === added file 'product_cost_group/__init__.py' --- product_cost_group/__init__.py 1970-01-01 00:00:00 +0000 +++ product_cost_group/__init__.py 2012-11-29 22:35:24 +0000 @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Addons modules by CLEARCORP S.A. +# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). +# +# 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 file 'product_cost_group/__openerp__.py' --- product_cost_group/__openerp__.py 1970-01-01 00:00:00 +0000 +++ product_cost_group/__openerp__.py 2012-11-29 22:35:24 +0000 @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Addons modules by CLEARCORP S.A. +# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). +# +# 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" : 'CLEARCORP Product Cost Group', + "version" : '2.0', + "author" : 'CLEARCORP S.A.', + #easy, normal, expert + 'complexity': 'normal', + "description": """ + Creates group to show/hide costs of products, customizes product views + """, + "category": 'Sales', + "sequence": 4, + "website" : "http://clearcorp.co.cr", + "images" : [], + "icon" : False, + "depends" : [ + 'base', + 'stock'], + "init_xml" : [], + "demo_xml" : [], + "update_xml" : ['product_cost_group_view.xml', + 'security/product_cost_group_security.xml', + ], + "test" : [], + "auto_install": False, + "application": False, + "installable": True, + 'license': 'AGPL-3', +} === added directory 'product_cost_group/i18n' === added symlink 'product_cost_group/i18n/es.po' === target is u'es_CR.po' === added file 'product_cost_group/i18n/es_CR.po' --- product_cost_group/i18n/es_CR.po 1970-01-01 00:00:00 +0000 +++ product_cost_group/i18n/es_CR.po 2012-11-29 22:35:24 +0000 @@ -0,0 +1,32 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * product_cost_group +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-11-29 21:20+0000\n" +"PO-Revision-Date: 2012-11-29 21:20+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: product_cost_group +#: model:res.groups,name:product_cost_group.group_costs_viewer +msgid " View Costs" +msgstr " Ver Costos" + +#. module: product_cost_group +#: view:product.product:0 +msgid "Update" +msgstr "Actualizar" + +#. module: product_cost_group +#: view:product.product:0 +msgid "Cost Price :" +msgstr "Precio Costo :" + === added file 'product_cost_group/i18n/product_cost_group.pot' --- product_cost_group/i18n/product_cost_group.pot 1970-01-01 00:00:00 +0000 +++ product_cost_group/i18n/product_cost_group.pot 2012-11-29 22:35:24 +0000 @@ -0,0 +1,32 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * product_cost_group +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-11-29 21:20+0000\n" +"PO-Revision-Date: 2012-11-29 21:20+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: product_cost_group +#: model:res.groups,name:product_cost_group.group_costs_viewer +msgid " View Costs" +msgstr " Ver Costos" + +#. module: product_cost_group +#: view:product.product:0 +msgid "Update" +msgstr "Actualizar" + +#. module: product_cost_group +#: view:product.product:0 +msgid "Cost Price :" +msgstr "Precio Costo :" + === added file 'product_cost_group/product_cost_group_view.xml' --- product_cost_group/product_cost_group_view.xml 1970-01-01 00:00:00 +0000 +++ product_cost_group/product_cost_group_view.xml 2012-11-29 22:35:24 +0000 @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<openerp> + <data> + <record id="ccorp_product_product_tree_view" model="ir.ui.view"> + <field name="name">ccorp.product.product.tree</field> + <field name="model">product.product</field> + <field name="inherit_id" ref="product.product_product_tree_view"/> + <field name="type">tree</field> + <field name="arch" type="xml"> + <field name="standard_price" position="replace"> + <field name="standard_price" groups="product_cost_group.group_costs_viewer"/> + </field> + </field> + </record> + + +<!--Inherits from stock.view_product_standard_price_form because of a priority error (product.product.standard.price.form.inherit) --> + <record id="ccorp_product_normal_form_view" model="ir.ui.view"> + <field name="name">ccorp.product.normal.form</field> + <field name="model">product.product</field> + <field name="inherit_id" ref="stock.view_product_standard_price_form"/> + <field name="type">form</field> + <field eval="1" name="priority"/> + <field name="arch" type="xml"> + + <xpath expr="/form/notebook/page[@string='Information']/group/label[@string='Cost Price :']" position="replace"> + <label string="Cost Price :" align="1.0" groups="product_cost_group.group_costs_viewer"/> + </xpath> + <field name="standard_price" position="replace"> + <field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}" nolabel= "1" + groups="product_cost_group.group_costs_viewer"/> + </field> + <button name="321" position="replace"> + <button name="321" string="Update" type="action" icon="gtk-execute" attrs="{'invisible':[('cost_method','<>','average')]}" + groups="product_cost_group.group_costs_viewer"/> + </button> + + + </field> + </record> + + </data> +</openerp> === added directory 'product_cost_group/security' === added file 'product_cost_group/security/product_cost_group_security.xml' --- product_cost_group/security/product_cost_group_security.xml 1970-01-01 00:00:00 +0000 +++ product_cost_group/security/product_cost_group_security.xml 2012-11-29 22:35:24 +0000 @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + + <record id="group_costs_viewer" model="res.groups"> + <field name="name"> View Costs</field> + </record> + + </data> +</openerp>
_______________________________________________ Mailing list: https://launchpad.net/~clearcorp Post to : [email protected] Unsubscribe : https://launchpad.net/~clearcorp More help : https://help.launchpad.net/ListHelp

