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):
|
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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user