Files
odoo_source/addons/l10n_se/views/account_journal_view.xml
T
Daniel Stenlöv 8aa0f237b1 [MOV] l10n_se: merge l10n_se_ocr in l10n_se
Also did below improvements/fixes,
- Added missing .pot file for internationalization and re-exported
Swedish translation file and adapted the translation.
- Fixed partner view by inherting it from account instead of base.
- Constrain method should not 'return' ValidationError, it should
'raise', it is now fixed.

closes odoo/odoo#53298

Task: 2279356
Closes: #53298
Related: odoo/upgrade#1371
Signed-off-by: William André (wan) <wan@odoo.com>
2021-01-22 14:24:03 +00:00

16 lines
682 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_account_journal_se_ocr_form" model="ir.ui.view">
<field name="name">account.journal.se.ocr.form</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.view_account_journal_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_reference_model']" position="after">
<field name="l10n_se_invoice_ocr_length" attrs="{'invisible': [('invoice_reference_model', '!=', 'se_ocr4')]}"/>
</xpath>
</field>
</record>
</data>
</odoo>