| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<data> |
| 4 |
|
| 5 |
<record id="product_template_only_form_view_inherit_l10n_tr_nilvera_extended" model="ir.ui.view"> |
| 6 |
<field name="name">product.template.product.form.view.inherit.l10n_tr_nilvera_extended</field> |
| 7 |
<field name="model">product.template</field> |
| 8 |
<field name="inherit_id" ref="product.product_template_only_form_view"/> |
| 9 |
<field name="arch" type="xml"> |
| 10 |
<xpath expr="//field[@name='barcode']" position="after"> |
| 11 |
<field name="l10n_tr_ctsp_number" |
| 12 |
invisible="product_variant_count > 1 |
| 13 |
or (product_variant_count == 0 |
| 14 |
and valid_product_template_attribute_line_ids) |
| 15 |
or 'TR' not in fiscal_country_codes"/> |
| 16 |
</xpath> |
| 17 |
</field> |
| 18 |
</record> |
| 19 |
|
| 20 |
<record id="product_product_only_form_view_inherit_l10n_tr_nilvera_extended" model="ir.ui.view"> |
| 21 |
<field name="name">product.product.form.view.inherit.l10n_tr_nilvera_extended</field> |
| 22 |
<field name="model">product.product</field> |
| 23 |
<field name="inherit_id" ref="product.product_normal_form_view"/> |
| 24 |
<field name="arch" type="xml"> |
| 25 |
<xpath expr="//field[@name='barcode']" position="after"> |
| 26 |
<field name="l10n_tr_ctsp_number" invisible="'TR' not in fiscal_country_codes"/> |
| 27 |
</xpath> |
| 28 |
</field> |
| 29 |
</record> |
| 30 |
</data> |
| 31 |
</odoo> |