mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
Fix CI errors
This commit is contained in:
@@ -130,3 +130,7 @@ class Collection(BaseCollection):
|
||||
|
||||
def list(self):
|
||||
return self.collection.dav_list(self.path_components)
|
||||
|
||||
@classmethod
|
||||
def create_collection(cls, href, collection=None, props=None):
|
||||
return None
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
from datetime import datetime, timedelta
|
||||
from unittest import mock
|
||||
|
||||
from odoo.exceptions import MissingError
|
||||
from odoo.tests.common import TransactionCase
|
||||
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
|
||||
|
||||
@@ -108,8 +107,7 @@ class TestCalendar(TransactionCase):
|
||||
|
||||
# Delete an record
|
||||
collection.delete(item.href)
|
||||
with self.assertRaises(MissingError):
|
||||
self.record.name
|
||||
self.assertFalse(self.record.exists())
|
||||
|
||||
# Create a new record
|
||||
item = collection.upload(record_url + "0", item)
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name"/>
|
||||
<field name="field_id"/>
|
||||
<field name="mapping_type"/>
|
||||
</tree>
|
||||
</field>
|
||||
@@ -52,9 +53,7 @@
|
||||
<field name="collection_id" invisible="1"/>
|
||||
<field name="name"/>
|
||||
<field name="mapping_type"/>
|
||||
<field name="field_id"
|
||||
domain="[('model_id', '=', collection_id.model_id)]"
|
||||
attrs="{'invisible': [('mapping_type', '!=', 'simple')]}"/>
|
||||
<field name="field_id" domain="[('model_id', '=', collection_id.model_id)]"/>
|
||||
<field name="import_code" attrs="{'invisible': [('mapping_type', '!=', 'code')]}"/>
|
||||
<field name="export_code" attrs="{'invisible': [('mapping_type', '!=', 'code')]}"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user