| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <odoo> |
| 3 | <record id="view_move_form_l10n_pl" model="ir.ui.view"> |
| 4 | <field name="name">account.move.form</field> |
| 5 | <field name="model">account.move</field> |
| 6 | <field name="inherit_id" ref="account.view_move_form"/> |
| 7 | <field name="arch" type="xml"> |
| 8 | <xpath expr="//group[@id='header_right_group']//field[@name='date']" position="attributes"> |
| 9 | <attribute name="invisible" add="country_code != 'PL'" separator=" and "/> |
| 10 | </xpath> |
| 11 | |
| 12 | <notebook position="inside"> |
| 13 | <page id="pl_extra" string="PL Extra" name="page_pl_extra" invisible="move_type not in ('out_invoice', 'out_refund') or country_code != 'PL'"> |
| 14 | <group> |
| 15 | <group> |
| 16 | <field name="l10n_pl_vat_b_spv_dostawa" readonly="state != 'draft'"/> |
| 17 | <field name="l10n_pl_vat_b_mpv_prowizja" readonly="state != 'draft'"/> |
| 18 | </group> |
| 19 | <group> |
| 20 | <field name="l10n_pl_vat_b_spv" readonly="state != 'draft'"/> |
| 21 | </group> |
| 22 | </group> |
| 23 | </page> |
| 24 | </notebook> |
| 25 | </field> |
| 26 | </record> |
| 27 | </odoo> |