2023-05-08 16:08:47
|
ERROR
|
server
|
odoo.modules.registry:92
Failed to load registry
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/cache.py", line 85, in lookup
r = d[key]
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/func.py", line 69, in wrapper
return func(self, *args, **kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7f81d0ecf830>, 'price_security.group_restrict_prices')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/safe_eval.py", line 360, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
File "", line 1, in <module>
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 657, in id_get
res = self.model_id_get(id_str, raise_if_not_found)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 663, in model_id_get
return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_model.py", line 1697, in xmlid_to_res_model_res_id
return self.xmlid_lookup(xmlid)[1:3]
File "<decorator-gen-24>", line 2, in xmlid_lookup
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_model.py", line 1686, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: price_security.group_restrict_prices
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 712, in parse
self._tag_root(de)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 563, in _tag_record
f_val = _eval_xml(self, field, env)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 117, in _eval_xml
return safe_eval(a_eval, idref2)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 32, in <lambda>
safe_eval = lambda expr, ctx={}: s_eval(expr, ctx, nocopy=True)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/safe_eval.py", line 383, in safe_eval
pycompat.reraise(ValueError, ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr)), exc_info[2])
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/safe_eval.py", line 360, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
File "", line 1, in <module>
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 657, in id_get
res = self.model_id_get(id_str, raise_if_not_found)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 663, in model_id_get
return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_model.py", line 1697, in xmlid_to_res_model_res_id
return self.xmlid_lookup(xmlid)[1:3]
File "<decorator-gen-24>", line 2, in xmlid_lookup
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_model.py", line 1686, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: <class 'ValueError'>: "External ID not found in the system: price_security.group_restrict_prices" while evaluating
"[(6, 0, [ref('price_security.group_restrict_prices')])]"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 428, in load_modules
loaded_modules, update_module, models_to_check)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 315, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 225, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 736, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 803, in convert_xml_import
obj.parse(doc.getroot())
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 721, in parse
exc_info[2]
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 712, in parse
self._tag_root(de)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 563, in _tag_record
f_val = _eval_xml(self, field, env)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 117, in _eval_xml
return safe_eval(a_eval, idref2)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 32, in <lambda>
safe_eval = lambda expr, ctx={}: s_eval(expr, ctx, nocopy=True)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/safe_eval.py", line 383, in safe_eval
pycompat.reraise(ValueError, ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr)), exc_info[2])
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/safe_eval.py", line 360, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
File "", line 1, in <module>
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 657, in id_get
res = self.model_id_get(id_str, raise_if_not_found)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 663, in model_id_get
return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_model.py", line 1697, in xmlid_to_res_model_res_id
return self.xmlid_lookup(xmlid)[1:3]
File "<decorator-gen-24>", line 2, in xmlid_lookup
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_model.py", line 1686, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
odoo.tools.convert.ParseError: "<class 'ValueError'>: "External ID not found in the system: price_security.group_restrict_prices" while evaluating
"[(6, 0, [ref('price_security.group_restrict_prices')])]"" while parsing /data/build/ingadhoc-product/product_replenishment_cost/views/product_template_views.xml:2, near
<odoo>
<record id="product_template_form_view" model="ir.ui.view">
<field name="name">product.cost.currency.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="purchase.view_product_supplier_inherit"/>
<field name="arch" type="xml">
<group name="purchase" position="before">
<group name="costing">
<field name="supplier_currency_id" invisible="1"/>
<group name="replenishment_cost" string="Replenishment Cost">
<field name="replenishment_cost_type"/>
<field name="replenishment_cost_last_update" string="Last Update" readonly="1" attrs="{'invisible':[('replenishment_cost_type', '!=', 'manual')]}"/>
<label for="replenishment_base_cost" string="Base Cost"/>
<div name="replenishment_base_cost" class="o_row">
<field name="supplier_price" widget="monetary" options="{'currency_field': 'supplier_currency_id','field_digits': True}" attrs="{'invisible':[('replenishment_cost_type', 'not in', ['supplier_price', 'last_supplier_price'])]}"/>
<field name="replenishment_base_cost" class="oe_inline" widget="monetary" options="{'currency_field': 'replenishment_base_cost_currency_id','field_digits': True}" attrs="{'invisible':[('replenishment_cost_type', '!=', 'manual')]}"/>
<field name="replenishment_base_cost_currency_id" class="oe_inline oe_edit_only" options="{'no_open': True, 'no_create': True}" attrs="{'invisible':[('replenishment_cost_type', '!=', 'manual')]}"/>
<label for="replenishment_base_cost_on_currency" string="/"/>
<field name="replenishment_base_cost_on_currency" class="oe_inline" widget="monetary" options="{'currency_field': 'currency_id','field_digits': True}"/>
</div>
<field name="replenishment_cost_rule_id" string="Cost Rule" context="{'default_product_id': active_id}"/>
<field name="replenishment_cost" string="Replenishment Cost" widget="monetary" options="{'currency_field': 'currency_id','field_digits': True}"/>
</group>
<group name="accounting_cost" string="Accounting Cost">
<label for="standard_price" groups="base.group_user" string="Accounting Cost"/>
<div name="standard_price" groups="base.group_user">
<field name="standard_price" widget="monetary" options="{'currency_field': 'cost_currency_id','field_digits': True}" class="oe_inline" readonly="1" attrs="{'invisible': [('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}" force_save="1"/>
<button name="%(product.product_variant_action)d" icon="fa-arrow-right" type="action" attrs="{'invisible': ['|', ('product_variant_count', '<=', 1), ('is_product_variant', '=', True)]}" groups="product.group_product_variant" string="Variants Costs" class="oe_inline"/>
</div>
</group>
</group>
</group>
</field>
</record>
<record id="view_product_only_view_sale_price_form" model="ir.ui.view">
<field name="name">View Only sale price template form - hide costing</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product_template_form_view"/>
<field name="groups_id" eval="[(6, 0, [ref('price_security.group_restrict_prices')])]"/>
<field name="arch" type="xml">
<!-- we hide costing -->
<group name="costing" position="attributes">
<attribute name="invisible">1</attribute>
</group>
</field>
</record>
<record id="product_template_search_view" model="ir.ui.view">
<field name="name">product.template.filter</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view"/>
<field name="arch" type="xml">
<filter name="filter_to_sell" position="after">
<filter string="Without Rep. Rule" name="without_rep_rule" help="Products Without Replenishment Rule" domain="[('replenishment_cost_rule_id', '=', False)]"/>
<separator/>
</filter>
</field>
</record>
<record id="product_template_tree_view" model="ir.ui.view">
<field name="name">product.template.tree</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_tree_view"/>
<field name="arch" type="xml">
<field name="standard_price" position="after">
<field name="replenishment_cost_last_update" optional="hide"/>
</field>
</field>
</record>
</odoo>
|
2023-05-08 16:08:47
|
CRITICAL
|
server
|
odoo.service.server:1225
Failed to initialize database `12077-13-0-all`.
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/cache.py", line 85, in lookup
r = d[key]
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/func.py", line 69, in wrapper
return func(self, *args, **kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7f81d0ecf830>, 'price_security.group_restrict_prices')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/safe_eval.py", line 360, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
File "", line 1, in <module>
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 657, in id_get
res = self.model_id_get(id_str, raise_if_not_found)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 663, in model_id_get
return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_model.py", line 1697, in xmlid_to_res_model_res_id
return self.xmlid_lookup(xmlid)[1:3]
File "<decorator-gen-24>", line 2, in xmlid_lookup
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_model.py", line 1686, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: price_security.group_restrict_prices
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 712, in parse
self._tag_root(de)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 563, in _tag_record
f_val = _eval_xml(self, field, env)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 117, in _eval_xml
return safe_eval(a_eval, idref2)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 32, in <lambda>
safe_eval = lambda expr, ctx={}: s_eval(expr, ctx, nocopy=True)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/safe_eval.py", line 383, in safe_eval
pycompat.reraise(ValueError, ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr)), exc_info[2])
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/safe_eval.py", line 360, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
File "", line 1, in <module>
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 657, in id_get
res = self.model_id_get(id_str, raise_if_not_found)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 663, in model_id_get
return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_model.py", line 1697, in xmlid_to_res_model_res_id
return self.xmlid_lookup(xmlid)[1:3]
File "<decorator-gen-24>", line 2, in xmlid_lookup
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_model.py", line 1686, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: <class 'ValueError'>: "External ID not found in the system: price_security.group_restrict_prices" while evaluating
"[(6, 0, [ref('price_security.group_restrict_prices')])]"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/service/server.py", line 1194, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 428, in load_modules
loaded_modules, update_module, models_to_check)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 315, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 225, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 736, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 803, in convert_xml_import
obj.parse(doc.getroot())
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 721, in parse
exc_info[2]
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 712, in parse
self._tag_root(de)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 563, in _tag_record
f_val = _eval_xml(self, field, env)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 117, in _eval_xml
return safe_eval(a_eval, idref2)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 32, in <lambda>
safe_eval = lambda expr, ctx={}: s_eval(expr, ctx, nocopy=True)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/safe_eval.py", line 383, in safe_eval
pycompat.reraise(ValueError, ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr)), exc_info[2])
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/safe_eval.py", line 360, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
File "", line 1, in <module>
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 657, in id_get
res = self.model_id_get(id_str, raise_if_not_found)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 663, in model_id_get
return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_model.py", line 1697, in xmlid_to_res_model_res_id
return self.xmlid_lookup(xmlid)[1:3]
File "<decorator-gen-24>", line 2, in xmlid_lookup
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_model.py", line 1686, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
odoo.tools.convert.ParseError: "<class 'ValueError'>: "External ID not found in the system: price_security.group_restrict_prices" while evaluating
"[(6, 0, [ref('price_security.group_restrict_prices')])]"" while parsing /data/build/ingadhoc-product/product_replenishment_cost/views/product_template_views.xml:2, near
<odoo>
<record id="product_template_form_view" model="ir.ui.view">
<field name="name">product.cost.currency.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="purchase.view_product_supplier_inherit"/>
<field name="arch" type="xml">
<group name="purchase" position="before">
<group name="costing">
<field name="supplier_currency_id" invisible="1"/>
<group name="replenishment_cost" string="Replenishment Cost">
<field name="replenishment_cost_type"/>
<field name="replenishment_cost_last_update" string="Last Update" readonly="1" attrs="{'invisible':[('replenishment_cost_type', '!=', 'manual')]}"/>
<label for="replenishment_base_cost" string="Base Cost"/>
<div name="replenishment_base_cost" class="o_row">
<field name="supplier_price" widget="monetary" options="{'currency_field': 'supplier_currency_id','field_digits': True}" attrs="{'invisible':[('replenishment_cost_type', 'not in', ['supplier_price', 'last_supplier_price'])]}"/>
<field name="replenishment_base_cost" class="oe_inline" widget="monetary" options="{'currency_field': 'replenishment_base_cost_currency_id','field_digits': True}" attrs="{'invisible':[('replenishment_cost_type', '!=', 'manual')]}"/>
<field name="replenishment_base_cost_currency_id" class="oe_inline oe_edit_only" options="{'no_open': True, 'no_create': True}" attrs="{'invisible':[('replenishment_cost_type', '!=', 'manual')]}"/>
<label for="replenishment_base_cost_on_currency" string="/"/>
<field name="replenishment_base_cost_on_currency" class="oe_inline" widget="monetary" options="{'currency_field': 'currency_id','field_digits': True}"/>
</div>
<field name="replenishment_cost_rule_id" string="Cost Rule" context="{'default_product_id': active_id}"/>
<field name="replenishment_cost" string="Replenishment Cost" widget="monetary" options="{'currency_field': 'currency_id','field_digits': True}"/>
</group>
<group name="accounting_cost" string="Accounting Cost">
<label for="standard_price" groups="base.group_user" string="Accounting Cost"/>
<div name="standard_price" groups="base.group_user">
<field name="standard_price" widget="monetary" options="{'currency_field': 'cost_currency_id','field_digits': True}" class="oe_inline" readonly="1" attrs="{'invisible': [('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}" force_save="1"/>
<button name="%(product.product_variant_action)d" icon="fa-arrow-right" type="action" attrs="{'invisible': ['|', ('product_variant_count', '<=', 1), ('is_product_variant', '=', True)]}" groups="product.group_product_variant" string="Variants Costs" class="oe_inline"/>
</div>
</group>
</group>
</group>
</field>
</record>
<record id="view_product_only_view_sale_price_form" model="ir.ui.view">
<field name="name">View Only sale price template form - hide costing</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product_template_form_view"/>
<field name="groups_id" eval="[(6, 0, [ref('price_security.group_restrict_prices')])]"/>
<field name="arch" type="xml">
<!-- we hide costing -->
<group name="costing" position="attributes">
<attribute name="invisible">1</attribute>
</group>
</field>
</record>
<record id="product_template_search_view" model="ir.ui.view">
<field name="name">product.template.filter</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view"/>
<field name="arch" type="xml">
<filter name="filter_to_sell" position="after">
<filter string="Without Rep. Rule" name="without_rep_rule" help="Products Without Replenishment Rule" domain="[('replenishment_cost_rule_id', '=', False)]"/>
<separator/>
</filter>
</field>
</record>
<record id="product_template_tree_view" model="ir.ui.view">
<field name="name">product.template.tree</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_tree_view"/>
<field name="arch" type="xml">
<field name="standard_price" position="after">
<field name="replenishment_cost_last_update" optional="hide"/>
</field>
</field>
</record>
</odoo>
|