Skip to content

Commit

Permalink
[IMP] linting manual fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TDu committed Oct 30, 2023
1 parent 5e79f16 commit fab1a32
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 66 deletions.
18 changes: 8 additions & 10 deletions ebill_paynet/data/mail_activity_type.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<record id="mail_activity_dws_error" model="mail.activity.type">
<field name="name">Paynet System Error</field>
<field name="icon">fa-warning</field>
<field name="delay_count">0</field>
<field name="sequence">99</field>
<field name="decoration_type">warning</field>
</record>
</data>
<odoo noupdate="1">
<record id="mail_activity_dws_error" model="mail.activity.type">
<field name="name">Paynet System Error</field>
<field name="icon">fa-warning</field>
<field name="delay_count">0</field>
<field name="sequence">99</field>
<field name="decoration_type">warning</field>
</record>
</odoo>
110 changes: 54 additions & 56 deletions l10n_ch_base_bank/views/bank.xml
Original file line number Diff line number Diff line change
@@ -1,61 +1,59 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<record id="view_bank_search" model="ir.ui.view">
<field name="name">res.bank.search</field>
<field name="model">res.bank</field>
<field name="arch" type="xml">
<search string="Banks">
<filter
name="Postfinance"
string="PostFinance"
domain="[('bic', '=', 'POFICHBEXXX')]"
help="PostFinance"
/>
<field name="name" />
<field name="code" />
<field name="street" />
<field name="city" />
</search>
<record id="view_bank_search" model="ir.ui.view">
<field name="name">res.bank.search</field>
<field name="model">res.bank</field>
<field name="arch" type="xml">
<search string="Banks">
<filter
name="Postfinance"
string="PostFinance"
domain="[('bic', '=', 'POFICHBEXXX')]"
help="PostFinance"
/>
<field name="name" />
<field name="code" />
<field name="street" />
<field name="city" />
</search>
</field>
</record>
<!-- 'POFICHBEXXX' corresponds to Postfinance bic -->
<record model="ir.ui.view" id="add_custom_fields_on_bank">
<field name="name">add custom fields on bank</field>
<field name="model">res.bank</field>
<field name="inherit_id" ref="base.view_res_bank_form" />
<field name="arch" type="xml">
<field name="bic" position="after">
<field name="code" />
<field name="clearing" />
</field>
</record>
<!-- 'POFICHBEXXX' corresponds to Postfinance bic -->
<record model="ir.ui.view" id="add_custom_fields_on_bank">
<field name="name">add custom fields on bank</field>
<field name="model">res.bank</field>
<field name="inherit_id" ref="base.view_res_bank_form" />
<field name="arch" type="xml">
<field name="bic" position="after">
<field name="code" />
<field name="clearing" />
</field>
<xpath expr="//field[@name='name']" position="after">
<field name="country_code" invisible="True" />
</xpath>
<xpath expr="//field[@name='city']" position="attributes">
<attribute
name="attrs"
>{'required': [('country_code', '=', 'CH')]}</attribute>
</xpath>
<xpath expr="//field[@name='bic']" position="attributes">
<attribute
name="attrs"
>{'required': [('country_code', '=', 'CH')]}</attribute>
</xpath>
<xpath expr="//field[@name='name']" position="after">
<field name="country_code" invisible="True" />
</xpath>
<xpath expr="//field[@name='city']" position="attributes">
<attribute
name="attrs"
>{'required': [('country_code', '=', 'CH')]}</attribute>
</xpath>
<xpath expr="//field[@name='bic']" position="attributes">
<attribute
name="attrs"
>{'required': [('country_code', '=', 'CH')]}</attribute>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="add_custom_fields_on_bank_list">
<field name="name">add custom fields on bank list</field>
<field name="model">res.bank</field>
<field name="inherit_id" ref="base.view_res_bank_tree" />
<field name="arch" type="xml">
<field name="bic" position="after">
<field name="code" />
<field name="clearing" />
<field name="street" />
<field name="city" />
</field>
</record>
<record model="ir.ui.view" id="add_custom_fields_on_bank_list">
<field name="name">add custom fields on bank list</field>
<field name="model">res.bank</field>
<field name="inherit_id" ref="base.view_res_bank_tree" />
<field name="arch" type="xml">
<field name="bic" position="after">
<field name="code" />
<field name="clearing" />
<field name="street" />
<field name="city" />
</field>
</field>
</record>
</data>
</field>
</record>
</odoo>

0 comments on commit fab1a32

Please sign in to comment.