[IMP]: product: wizard is changed into osv_memory wizard

bzr revid: mso@tinyerp.com-20100303054915-i4uxlei0ylgt1y95
This commit is contained in:
MTR (OpenERP)
2010-03-03 11:19:15 +05:30
committed by Mitesh Soni
parent 6aed24dfd8
commit ffaa3b607b
5 changed files with 50 additions and 3 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
#
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
@@ -15,7 +15,7 @@
# 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/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -51,6 +51,7 @@
'security/ir.model.access.csv',
'product_data.xml',
'product_report.xml',
'wizard/product_price_list_view.xml',
'product_view.xml',
'pricelist_view.xml',
'partner_view.xml',
+9
View File
@@ -602,6 +602,15 @@
<field name="view_id" ref="product_template_tree_view"/>
</record>
<record model="ir.values" id="action_wizard_pricelist_report">
<field name="object" eval="1" />
<field name="name">Price List</field>
<field name="key2">client_print_multi</field>
<field name="value" eval="'ir.actions.act_window,' + str(ref('action_product_price_view'))" />
<field name="key">action</field>
<field name="model">product.product</field>
</record>
<!--
<menuitem action="product_template_action_tree" id="menu_templates" parent="product.menu_products" sequence="2"
groups="product.group_product_variant" />
+2 -1
View File
@@ -18,7 +18,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import wizard_price
import product_price_list
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_product_price_view" model="ir.ui.view">
<field name="name">Price list</field>
<field name="model">product.price.list</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Price list">
<field name="price_list" colspan="2" />
<field name="qty1" colspan="2" />
<field name="qty2" colspan="2" />
<field name="qty3" colspan="2" />
<field name="qty4" colspan="2" />
<field name="qty5" colspan="2" />
<separator string="" colspan="4" />
<label string="" colspan="2" />
<button special="cancel" string="Cancel" />
<button string="Print" type="object"/>
</form>
</field>
</record>
<record id="action_product_price_view" model="ir.actions.act_window">
<field name="name">Price List </field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.price.list</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="view_id" ref="view_product_price_view"/>
</record>
</data>
</openerp>