[UPD] base_import_odoo: fix unit tests
parent
58896b85b2
commit
e6d215a8c9
|
@ -67,4 +67,13 @@
|
|||
<field name="model_field_id" ref="base.field_ir_attachment__res_model" />
|
||||
<field name="id_field_id" ref="base.field_ir_attachment__res_id" />
|
||||
</record>
|
||||
<record id="mapping_mail_alias_name" model="import.odoo.database.field">
|
||||
<field name="database_id" ref="demodb" />
|
||||
<field name="mapping_type">by_field</field>
|
||||
<field name="model_id" ref="mail.model_mail_alias" />
|
||||
<field
|
||||
name="field_ids"
|
||||
eval="[(4, ref('mail.field_mail_alias__alias_name'))]"
|
||||
/>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<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>
|
||||
<field name="domain">[('alias_name', '!=', '')]</field>
|
||||
</record>
|
||||
<record id="model_users" model="import.odoo.database.model">
|
||||
<field name="sequence">3</field>
|
||||
|
|
|
@ -125,7 +125,7 @@ class TestBaseImportOdoo(TransactionCase):
|
|||
|
||||
def _get_xmlid(self, remote_xmlid):
|
||||
remote_obj = self.env.ref(remote_xmlid)
|
||||
return "base_import_odoo.%d-%s-%s" % (
|
||||
return "__base_import_odoo__.%d-%s-%s" % (
|
||||
self.env.ref("base_import_odoo.demodb").id,
|
||||
remote_obj._name.replace(".", "_"),
|
||||
remote_obj.id,
|
||||
|
|
Loading…
Reference in New Issue