diff --git a/src/util/records.py b/src/util/records.py index a2801749..88c5125f 100644 --- a/src/util/records.py +++ b/src/util/records.py @@ -280,7 +280,7 @@ def get_trans_terms(value): ) -def add_view(cr, name, model, view_type, arch_db, inherit_xml_id=None, priority=16, key=None): +def add_view(cr, name, model, view_type, arch_db, inherit_xml_id=None, priority=16, key=None, website_id=None): inherit_id = None if inherit_xml_id: inherit_id = ref(cr, inherit_xml_id) @@ -311,6 +311,7 @@ def add_view(cr, name, model, view_type, arch_db, inherit_xml_id=None, priority= "priority": priority, "key": key, "arch_db": arch_column_value, + "website_id": website_id, }, ) return cr.fetchone()[0]