| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | |
| 4 | <record id="account_move_form_view_l10n_tr_nilvera_extended" model="ir.ui.view"> |
| 5 | <field name="name">account.move.form.view.inherit.l10n_tr_nilvera_extended</field> |
| 6 | <field name="model">account.move</field> |
| 7 | <field name="inherit_id" ref="account.view_move_form"/> |
| 8 | <field name="arch" type="xml"> |
| 9 | <xpath expr="//group[@name='accounting_info_group']/field[@name='invoice_incoterm_id']" position="attributes"> |
| 10 | <attribute name="required" add="l10n_tr_is_export_invoice" separator=" or "/> |
| 11 | </xpath> |
| 12 | |
| 13 | <xpath expr="//div[@name='journal_div']" position="after"> |
| 14 | <field name="l10n_tr_is_export_invoice" invisible="l10n_tr_nilvera_customer_status != 'earchive'" readonly="state in ['cancel', 'posted']"/> |
| 15 | <div class="o_td_label" invisible="l10n_tr_is_export_invoice or country_code != 'TR' or move_type != 'out_invoice' or l10n_tr_nilvera_customer_status not in ['einvoice', 'earchive']"> |
| 16 | <label for="l10n_tr_gib_invoice_scenario" invisible="l10n_tr_nilvera_customer_status != 'einvoice'" /> |
| 17 | <label string="Invoice Type" for="l10n_tr_gib_invoice_type" invisible="l10n_tr_nilvera_customer_status != 'earchive'"/> |
| 18 | </div> |
| 19 | <div class="d-flex" invisible="l10n_tr_is_export_invoice or country_code != 'TR' or move_type != 'out_invoice' or l10n_tr_nilvera_customer_status not in ['einvoice', 'earchive']"> |
| 20 | <field name="l10n_tr_gib_invoice_scenario" invisible="l10n_tr_nilvera_customer_status != 'einvoice'" readonly="state in ['cancel', 'posted']"/> |
| 21 | <span class="o_form_label mx-3" invisible="l10n_tr_nilvera_customer_status != 'einvoice'">is</span> |
| 22 | <field name="l10n_tr_gib_invoice_type" invisible="l10n_tr_nilvera_customer_status not in ['einvoice', 'earchive']" readonly="state in ['cancel', 'posted']"/> |
| 23 | </div> |
| 24 | <field name="l10n_tr_exemption_code_id" domain="[('code_type', 'in', l10n_tr_exemption_code_domain_list or [])]" invisible="not l10n_tr_exemption_code_domain_list or l10n_tr_nilvera_customer_status not in ['einvoice', 'earchive']" required="l10n_tr_is_export_invoice or l10n_tr_gib_invoice_type == 'IHRACKAYITLI'" readonly="state in ['cancel', 'posted']"/> |
| 25 | <field name="l10n_tr_shipping_type" invisible="not l10n_tr_exemption_code_domain_list or l10n_tr_nilvera_customer_status != 'earchive' or not l10n_tr_is_export_invoice" readonly="state in ['cancel', 'posted']"/> |
| 26 | </xpath> |
| 27 | |
| 28 | <xpath expr="//field[@name='invoice_line_ids']//list//field[@name='tax_ids']" position="after"> |
| 29 | <field name="l10n_tr_ctsp_number" optional="hide"/> |
| 30 | </xpath> |
| 31 | </field> |
| 32 | </record> |
| 33 | </odoo> |