Fix CI errors

This commit is contained in:
fkantelberg
2020-01-12 21:39:32 +01:00
parent 470084aa30
commit 06c7eb934f
3 changed files with 7 additions and 6 deletions

View File

@@ -130,3 +130,7 @@ class Collection(BaseCollection):
def list(self): def list(self):
return self.collection.dav_list(self.path_components) return self.collection.dav_list(self.path_components)
@classmethod
def create_collection(cls, href, collection=None, props=None):
return None

View File

@@ -3,7 +3,6 @@
from datetime import datetime, timedelta from datetime import datetime, timedelta
from unittest import mock from unittest import mock
from odoo.exceptions import MissingError
from odoo.tests.common import TransactionCase from odoo.tests.common import TransactionCase
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
@@ -108,8 +107,7 @@ class TestCalendar(TransactionCase):
# Delete an record # Delete an record
collection.delete(item.href) collection.delete(item.href)
with self.assertRaises(MissingError): self.assertFalse(self.record.exists())
self.record.name
# Create a new record # Create a new record
item = collection.upload(record_url + "0", item) item = collection.upload(record_url + "0", item)

View File

@@ -39,6 +39,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree> <tree>
<field name="name"/> <field name="name"/>
<field name="field_id"/>
<field name="mapping_type"/> <field name="mapping_type"/>
</tree> </tree>
</field> </field>
@@ -52,9 +53,7 @@
<field name="collection_id" invisible="1"/> <field name="collection_id" invisible="1"/>
<field name="name"/> <field name="name"/>
<field name="mapping_type"/> <field name="mapping_type"/>
<field name="field_id" <field name="field_id" domain="[('model_id', '=', collection_id.model_id)]"/>
domain="[('model_id', '=', collection_id.model_id)]"
attrs="{'invisible': [('mapping_type', '!=', 'simple')]}"/>
<field name="import_code" attrs="{'invisible': [('mapping_type', '!=', 'code')]}"/> <field name="import_code" attrs="{'invisible': [('mapping_type', '!=', 'code')]}"/>
<field name="export_code" attrs="{'invisible': [('mapping_type', '!=', 'code')]}"/> <field name="export_code" attrs="{'invisible': [('mapping_type', '!=', 'code')]}"/>
</group> </group>