mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-25 10:01:59 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -8,25 +8,93 @@
|
|||
<field name="mode">primary</field>
|
||||
<field name="priority">14</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//sheet" position="before">
|
||||
<div class="alert alert-warning" role="alert" invisible="not duplicate_bank_partner_ids">
|
||||
<span>The Bank Account could be a duplicate of</span>
|
||||
<field name="duplicate_bank_partner_ids" widget="x2many_buttons" string="Partners with same bank"/>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//form[@name='bank_account_form']/sheet[1]" position="after">
|
||||
<div class="oe_chatter">
|
||||
<field name="message_follower_ids" widget="mail_followers"/>
|
||||
<field name="message_ids" widget="mail_thread"/>
|
||||
<field name="activity_ids" widget="mail_activity"/>
|
||||
<chatter/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='acc_number']" position="attributes">
|
||||
<attribute name="readonly">lock_trust_fields</attribute>
|
||||
<attribute name="force_save">1</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='partner_id']" position="attributes">
|
||||
<attribute name="readonly">lock_trust_fields</attribute>
|
||||
<attribute name="force_save">1</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='allow_out_payment']" position="replace">
|
||||
<field name="user_has_group_validate_bank_account" invisible="1"/>
|
||||
<field name="lock_trust_fields" invisible="1"/>
|
||||
<label for="allow_out_payment"/>
|
||||
<div class="d-flex gap-2">
|
||||
<field name="allow_out_payment" widget="boolean_toggle" options="{'autosave': False}" readonly="not user_has_group_validate_bank_account" class="w-25"/>
|
||||
<span class="d-flex gap-2 w-100">
|
||||
<span invisible="allow_out_payment" class="text-muted">Untrusted</span>
|
||||
<span invisible="not allow_out_payment" class="text-success">Trusted</span>
|
||||
</span>
|
||||
</div>
|
||||
<div invisible="allow_out_payment" colspan="2">
|
||||
<field name="has_money_transfer_warning" invisible="1"/>
|
||||
<div invisible="not has_money_transfer_warning" class="mb-1">
|
||||
<span class="text-danger">High risk</span>: <field name="money_transfer_service" nolabel="1" class="oe_inline"/> is a money transfer service and not a bank.
|
||||
Double check if the account can be trusted by calling the vendor.<br/>
|
||||
<widget name="documentation_link" path="/applications/finance/accounting/payables/pay/trusted_accounts.html" label="Check why."/>
|
||||
</div>
|
||||
<field name="has_iban_warning" invisible="1"/>
|
||||
<div invisible="not has_iban_warning">
|
||||
<span class="text-warning">Medium risk</span>: Iban <field name="sanitized_acc_number" nolabel="1" class="oe_inline fw-bold"/>
|
||||
is not from the same country as the partner (<field name="partner_country_name" nolabel="1" class="oe_inline"/>).<br/>
|
||||
<widget name="documentation_link" path="/applications/finance/accounting/payables/pay/trusted_accounts.html" label="Check why it's risky."/>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_new_bank_setting" model="ir.actions.server">
|
||||
<field name="name">Add a Bank Account</field>
|
||||
<field name="model_id" ref="model_res_company"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
action = model.setting_init_bank_account_action()
|
||||
<record id="view_partner_bank_search_inherit" model="ir.ui.view">
|
||||
<field name="name">res.partner.bank.search.inherit</field>
|
||||
<field name="model">res.partner.bank</field>
|
||||
<field name="inherit_id" ref="base.view_partner_bank_search"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//search" position="inside">
|
||||
<filter string="Trusted" name="trusted" domain="[('allow_out_payment', '=', True)]"/>
|
||||
<filter string="Untrusted" name="untrusted" domain="[('allow_out_payment', '=', False)]"/>
|
||||
<filter string="To validate" name="to_validate" domain="[('allow_out_payment', '=', False), ('related_moves', '!=', False)]"/>
|
||||
<separator/>
|
||||
<filter string="Customers" name="customer" domain="[('partner_customer_rank','>', 0)]"/>
|
||||
<filter string="Vendors" name="supplier" domain="[('partner_supplier_rank','>', 0)]"/>
|
||||
<separator/>
|
||||
<filter string="Phishing risk: High" name="high_phishing_risk" domain="[('has_money_transfer_warning', '!=', False)]"/>
|
||||
<filter string="Phishing risk: Medium" name="medium_phishing_risk" domain="[('has_iban_warning', '!=', False)]"/>
|
||||
<separator/>
|
||||
<filter string="Created On" name="create_date" date="create_date"/>
|
||||
<group>
|
||||
<filter string="Created On" name="groupby_create_date" context="{'group_by': 'create_date'}"/>
|
||||
<filter string="Created By" name="groupby_create_by" context="{'group_by': 'create_uid'}"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
<field name="groups_id" eval="[(4, ref('account.group_account_manager'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="action_account_supplier_accounts" model="ir.actions.act_window">
|
||||
<field name="name">Bank Accounts</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.partner.bank</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="view_id" ref="base.view_partner_bank_tree"/>
|
||||
<field name="search_view_id" ref="view_partner_bank_search_inherit"/>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Create a new bank account
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue