mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-24 10:42:01 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -5,17 +5,15 @@
|
|||
<field name="model">account.journal</field>
|
||||
<field name="inherit_id" ref="account.account_journal_dashboard_kanban_view" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//t[@t-name='JournalBodyBankCash']//div[hasclass('o_kanban_primary_right')]" position="inside">
|
||||
<xpath expr="//t[@t-name='JournalBodyBankCash']//div[@name='kanban_primary_right']" position="inside">
|
||||
<div t-if="journal_type == 'bank' and dashboard.num_checks_to_print != 0">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<a type="object" name="action_checks_to_print">
|
||||
<t t-esc="dashboard.num_checks_to_print"/>
|
||||
<span>&nbsp;</span>
|
||||
<t t-if="dashboard.num_checks_to_print == 1">Check to print</t>
|
||||
<t t-if="dashboard.num_checks_to_print != 1">Checks to print</t>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<a type="object" name="action_checks_to_print">
|
||||
<t t-out="dashboard.num_checks_to_print"/>
|
||||
<span>&nbsp;</span>
|
||||
<t t-if="dashboard.num_checks_to_print == 1">Check to print</t>
|
||||
<t t-if="dashboard.num_checks_to_print != 1">Checks to print</t>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
|
|
@ -29,12 +27,13 @@
|
|||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@id='outbound_payment_settings']//group[@name='outgoing_payment']" position="inside">
|
||||
<group string="Check Printing"
|
||||
attrs="{'invisible': ['|', '!', ('selected_payment_method_codes', 'ilike', ',check_printing,'), ('type', '!=', 'bank')]}">
|
||||
invisible="',check_printing,'.lower() not in (selected_payment_method_codes or '').lower() or type != 'bank'">
|
||||
<field name="check_sequence_id" invisible="1"/>
|
||||
<field name="check_manual_sequencing"
|
||||
/>
|
||||
<field name="check_next_number"
|
||||
attrs="{'invisible': [('check_manual_sequencing', '=', False)]}"/>
|
||||
invisible="not check_manual_sequencing"/>
|
||||
<field name="bank_check_printing_layout" placeholder="Default"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="view_account_invoice_filter" model="ir.ui.view">
|
||||
<field name="name">account.invoice.select.account_check_printing</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_account_invoice_filter"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//search/group/filter[@name='status']" position="after">
|
||||
<filter name="preferred_payment_method" context="{'group_by': 'preferred_payment_method_id'}" groups="account.group_account_invoice,account.group_account_readonly"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -6,20 +6,20 @@
|
|||
<field name="inherit_id" ref="account.view_account_payment_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='action_post']" position="before">
|
||||
<button name="print_checks" class="oe_highlight" attrs="{'invisible': ['|', '|', ('payment_method_code', '!=', 'check_printing'), ('state', '!=', 'posted'), ('is_move_sent', '=', True)]}" string="Print Check" type="object" data-hotkey="g" />
|
||||
<button name="action_unmark_sent" attrs="{'invisible': ['|', ('payment_method_code', '!=', 'check_printing'), ('is_move_sent', '=', False)]}" string="Unmark Sent" type="object" data-hotkey="l" />
|
||||
<button name="action_void_check" attrs="{'invisible': ['|', '|', ('payment_method_code', '!=', 'check_printing'), ('state', '!=', 'posted'), ('is_move_sent', '=', False)]}" string="Void Check" type="object" data-hotkey="o" />
|
||||
<button name="print_checks" class="oe_highlight" invisible="payment_method_code != 'check_printing' or is_sent or not check_layout_available" string="Print Check" type="object" data-hotkey="g" />
|
||||
<button name="unmark_as_sent" invisible="payment_method_code != 'check_printing' or not is_sent" string="Unmark Sent" type="object" data-hotkey="l" />
|
||||
<button name="action_void_check" invisible="payment_method_code != 'check_printing' or state != 'in_process' or not is_sent" string="Void Check" type="object" data-hotkey="o" />
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='amount_div']" position="after">
|
||||
<field name="check_amount_in_words" attrs="{'invisible': [('payment_method_code', '!=', 'check_printing')]}" groups="base.group_no_one"/>
|
||||
<field name="check_amount_in_words" invisible="payment_method_code != 'check_printing'" groups="base.group_no_one"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='payment_method_line_id']" position="after">
|
||||
<field name="check_manual_sequencing" invisible="1"/>
|
||||
<field name="show_check_number" invisible="1"/>
|
||||
<field name="check_number" attrs="{'invisible': [('show_check_number', '=', False)]}"/>
|
||||
<field name="check_number" invisible="not show_check_number"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='name']" position='before'>
|
||||
<widget name="web_ribbon" title="Sent" attrs="{'invisible': [('is_move_sent', '!=', True)]}"/>
|
||||
<widget name="web_ribbon" title="Sent" invisible="not is_sent or state in ('rejected', 'canceled')"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
<field name="arch" type="xml">
|
||||
<xpath expr="//filter[@name='activities_overdue']" position="before">
|
||||
<separator/>
|
||||
<filter name="checks_to_send" string="Checks to Print" domain="[('payment_method_line_id.code', '=', 'check_printing'), ('state', '=', 'posted'), ('is_move_sent', '=', False)]"/>
|
||||
<filter name="checks_to_send" string="Checks to Print" domain="[('payment_method_line_id.code', '=', 'check_printing'), ('state', '=', 'in_process'), ('is_sent', '=', False)]"/>
|
||||
<separator/>
|
||||
</xpath>
|
||||
</field>
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<div id="print_bills_payment" position="after">
|
||||
<div class="content-group" attrs="{'invisible': [('module_account_check_printing', '=', False)]}">
|
||||
<setting id="print_checks" position="inside">
|
||||
<div class="content-group" invisible="not module_account_check_printing">
|
||||
<div class="row mt16">
|
||||
<label for="account_check_printing_layout" class="col-lg-4 o_light_label"/>
|
||||
<field name="account_check_printing_layout" required="True"/>
|
||||
|
|
@ -23,16 +23,16 @@
|
|||
<label for="account_check_printing_margin_left" class="col-lg-4 o_light_label"/>
|
||||
<field name="account_check_printing_margin_left"/>
|
||||
</div>
|
||||
<div class="row" attrs="{'invisible': [('country_code', '!=', 'CA')]}">
|
||||
<div class="row" invisible="country_code != 'CA'">
|
||||
<label for="account_check_printing_margin_right" class="col-lg-4 o_light_label"/>
|
||||
<field name="account_check_printing_margin_right"/>
|
||||
</div>
|
||||
<div class="row" attrs="{'invisible': [('country_code', '!=', 'CA')]}">
|
||||
<div class="row" invisible="country_code != 'CA'">
|
||||
<label for="account_check_printing_date_label" class="col-lg-4 o_light_label"/>
|
||||
<field name="account_check_printing_date_label"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</setting>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="view_partner_property_form" model="ir.ui.view">
|
||||
<field name="name">res.partner.property.form.inherit</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="property_supplier_payment_term_id" position="after">
|
||||
<field name="property_payment_method_id" options="{'no_open': True, 'no_create': True}" groups="account.group_account_invoice,account.group_account_readonly"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue