From c8a160f251bb44f7aff8ea86a2fc7226be13aa31 Mon Sep 17 00:00:00 2001 From: Vijaykumar Baladaniya Date: Fri, 2 Nov 2012 11:37:10 +0530 Subject: [PATCH] [IMP]Improve content. bzr revid: vba@tinyerp.com-20121102060710-x5p5yl39n5qpe7ii --- addons/base_import/static/src/xml/import.xml | 46 ++++++++++---------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/addons/base_import/static/src/xml/import.xml b/addons/base_import/static/src/xml/import.xml index c149c825ea7..1a0a731a466 100644 --- a/addons/base_import/static/src/xml/import.xml +++ b/addons/base_import/static/src/xml/import.xml @@ -185,7 +185,7 @@ 'Sellable' category found in the Product Category list ("Misc. Products/Sellable"). We recommend you modify one of the duplicates' values or your product category - hierarchy. + hierarchy.
However if you do not wish to change your configuration of product categories, we recommend you use make use of the external ID for this field @@ -203,7 +203,8 @@ lined to both tags 'Manufacturer' and 'Retailer' then you will encode it as follow "Manufacturer, Retailer" in the same column of your CSV file.

- CSV file for many2many relationship
+ + CSV file for Manufacturer, Retailer
@@ -223,7 +224,7 @@ purchase.order_functional_error_line_cant_adpat.CSV file of some quotations you can import, based on demo data.

- File of some Quotations + File for some Quotations

The following CSV file shows how to import purchase orders with their respective purchase order lines:

Purchase orders with their respective purchase order lines @@ -298,27 +299,24 @@ as "Name",'True' as "Is a Company" from companies) TO '/tmp/company.csv' with CSV HEADER;

This SQL command will create the following CSV file: -
    External ID,Name,Is a - Company
     - company_1,Bigees,True
     - company_2,Organi,True
     - company_3,Boum,True

To create the CSV file for - persons, linked to companies, we will use the - following SQL command in PSQL:

-

    copy (select 'person_'||id - as "External ID",person_name as "Name",'False' as "Is - a Company",'company_'||company_id as "Related - Company/External ID" from persons) TO '/tmp/person.csv' - with CSV

-

It will produce the following CSV file:
-     External ID,Name,Is a - Company,Related Company/External ID
-     person_1,Fabien,False,company_1 -
     - person_2,Laurence,False,company_1
-     person_3,Eric,False,company_2 -
     - person_4,Ramsy,False,company_3

+
    External ID,Name,Is a Company +
    company_1,Bigees,True +
    company_2,Organi,True +
    company_3,Boum,True

+

To create the CSV file for persons, linked to + companies, we will use the following SQL command in + PSQL:

    copy (select + 'person_'||id as "External ID",person_name as + "Name",'False' as "Is a Company",'company_'||company_id + as "Related Company/External ID" from persons) TO + '/tmp/person.csv' with CSV

+

It will produce the following CSV file: +
    External ID,Name,Is a + Company,Related Company/External ID +
    person_1,Fabien,False,company_1 +
    person_2,Laurence,False,company_1 +
    person_3,Eric,False,company_2 +
    person_4,Ramsy,False,company_3

As you can see in this file, Fabien and Laurence are working for the Bigees company (company_1) and Eric is working for the Organi company. The relation