Browse Source

[ADD] depend on mail

10.0
Holger Brunn 7 years ago
committed by OCA-git-bot
parent
commit
ada28c0dce
  1. 2
      base_import_odoo/__openerp__.py
  2. 6
      base_import_odoo/demo/import_odoo_database_field.xml
  3. 12
      base_import_odoo/demo/import_odoo_database_model.xml

2
base_import_odoo/__openerp__.py

@ -9,7 +9,7 @@
"category": "Tools", "category": "Tools",
"summary": "Import records from another Odoo instance", "summary": "Import records from another Odoo instance",
"depends": [ "depends": [
'base',
'mail',
], ],
"demo": [ "demo": [
"demo/res_partner.xml", "demo/res_partner.xml",

6
base_import_odoo/demo/import_odoo_database_field.xml

@ -49,6 +49,12 @@
<field name="model_id" ref="base.model_res_users" /> <field name="model_id" ref="base.model_res_users" />
<field name="field_ids" eval="[(4, ref('base.field_res_users_login'))]" /> <field name="field_ids" eval="[(4, ref('base.field_res_users_login'))]" />
</record> </record>
<record id="mapping_models" model="import.odoo.database.field">
<field name="database_id" ref="demodb" />
<field name="mapping_type">by_field</field>
<field name="model_id" ref="base.model_ir_model" />
<field name="field_ids" eval="[(4, ref('base.field_ir_model_name'))]" />
</record>
<record id="mapping_groups" model="import.odoo.database.field"> <record id="mapping_groups" model="import.odoo.database.field">
<field name="database_id" ref="demodb" /> <field name="database_id" ref="demodb" />
<field name="mapping_type">by_field</field> <field name="mapping_type">by_field</field>

12
base_import_odoo/demo/import_odoo_database_model.xml

@ -7,20 +7,26 @@
<field name="database_id" ref="demodb" /> <field name="database_id" ref="demodb" />
<field name="domain">[(1, '=', 1)]</field> <field name="domain">[(1, '=', 1)]</field>
</record> </record>
<record id="model_users" model="import.odoo.database.model">
<record id="model_alias" model="import.odoo.database.model">
<field name="sequence">2</field> <field name="sequence">2</field>
<field name="model_id" ref="mail.model_mail_alias" />
<field name="database_id" ref="demodb" />
<field name="domain">[(1, '=', 1)]</field>
</record>
<record id="model_users" model="import.odoo.database.model">
<field name="sequence">3</field>
<field name="model_id" ref="base.model_res_users" /> <field name="model_id" ref="base.model_res_users" />
<field name="database_id" ref="demodb" /> <field name="database_id" ref="demodb" />
<field name="domain">[(1, '=', 1)]</field> <field name="domain">[(1, '=', 1)]</field>
</record> </record>
<record id="model_groups" model="import.odoo.database.model"> <record id="model_groups" model="import.odoo.database.model">
<field name="sequence">3</field>
<field name="sequence">4</field>
<field name="model_id" ref="base.model_res_groups" /> <field name="model_id" ref="base.model_res_groups" />
<field name="database_id" ref="demodb" /> <field name="database_id" ref="demodb" />
<field name="domain">[(1, '=', 1)]</field> <field name="domain">[(1, '=', 1)]</field>
</record> </record>
<record id="model_attachment" model="import.odoo.database.model"> <record id="model_attachment" model="import.odoo.database.model">
<field name="sequence">4</field>
<field name="sequence">5</field>
<field name="model_id" ref="base.model_ir_attachment" /> <field name="model_id" ref="base.model_ir_attachment" />
<field name="database_id" ref="demodb" /> <field name="database_id" ref="demodb" />
<field name="domain">[('res_model', 'in', ['res.users'])]</field> <field name="domain">[('res_model', 'in', ['res.users'])]</field>

Loading…
Cancel
Save