[DEL] Remove the demo data in multi-company module as asked by Fabien

bzr revid: joel.grandguillaume@camptocamp.com-20100211142326-lc011kadf8kluj64
This commit is contained in:
Joël Grand-Guillaume
2010-02-11 15:23:26 +01:00
parent 9478383420
commit fb4db629b4
3 changed files with 0 additions and 51 deletions
-2
View File
@@ -18,7 +18,5 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import product
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
@@ -1,16 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<!-- Valuation price type -->
<record id="standard_price_usd" model="product.price.type">
<field name="name">Cost Price USD</field>
<field name="field">standard_price_usd</field>
<field name="currency_id" search="[('code','=','USD')]"/>
</record>
<!-- Partner -->
<record id="base.main_partner" model="res.partner">
<field name="name">OpenERP Corp.</field>
@@ -39,32 +29,26 @@
<field name="partner_id" ref="res_partner_oerp_editor"/>
<field name="parent_id" ref="base.main_company"/>
<field name="name">OpenERP Editor</field>
<field name="currency_id" search="[('code','=','EUR')]"/>
</record>
<record id="res_company_oerp_us" model="res.company">
<field name="partner_id" ref="res_partner_oerp_us"/>
<field name="parent_id" ref="res_company_oerp_editor"/>
<field name="name">OpenERP US</field>
<field name="currency_id" search="[('code','=','USD')]"/>
<field name="property_valuation_price_type" ref="standard_price_usd"/>
</record>
<record id="res_company_oerp_be" model="res.company">
<field name="partner_id" ref="res_partner_oerp_be"/>
<field name="parent_id" ref="res_company_oerp_editor"/>
<field name="name">OpenERP BE</field>
<field name="currency_id" search="[('code','=','EUR')]"/>
</record>OpenERP IN
<record id="res_company_oerp_in" model="res.company">
<field name="partner_id" ref="res_partner_oerp_in"/>
<field name="parent_id" ref="res_company_oerp_editor"/>
<field name="name">OpenERP IN</field>
<field name="currency_id" search="[('code','=','EUR')]"/>
</record>
<record id="res_company_odoo" model="res.company">
<field name="partner_id" ref="res_partner_odoo"/>
<field name="parent_id" ref="base.main_company"/>
<field name="name">Odoo</field>
<field name="currency_id" search="[('code','=','EUR')]"/>
</record>
<!-- User -->
-33
View File
@@ -1,33 +0,0 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# 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 osv import fields, osv
from tools import config
class product_product(osv.osv):
_inherit = "product.product"
_columns = {
'standard_price_usd': fields.float('Cost Price USD', required=True, digits=(16, int(config['price_accuracy'])),
help="Product's cost in USDfor accounting stock valuation."),
}
product_product()