19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:30:07 +01:00
parent ba20ce7443
commit 768b70e05e
2357 changed files with 1057103 additions and 712486 deletions

View file

@ -4,40 +4,77 @@
<!--Account Move lines-->
<record id="validate_account_move_view" model="ir.ui.view">
<field name="name">Post Journal Entries</field>
<field name="name">Confirm Entries</field>
<field name="model">validate.account.move</field>
<field name="arch" type="xml">
<form string="Post Journal Entries">
<group>
<field name="force_post"/>
<form string="Confirm Entries">
<field name="move_ids" invisible="1"/>
<h4 class="mb-4">
The selected
<t invisible="not is_entries"> entries </t>
<t invisible="is_entries"> invoices </t>
will be posted. Some of them may be future-dated or require hashing,</h4>
<h4>and will not be posted automatically.</h4>
<group invisible="not display_force_post">
<field name="display_force_post" invisible="1"/>
<div colspan="2">
Future-dated
<t invisible="not is_entries"> entries </t>
<t invisible="is_entries"> invoices </t>
will auto-confirm on their respective dates.
<field name="force_post" class="oe_inline"/><label for="force_post" string="Confirm them now"/>
</div>
</group>
<group invisible="not display_force_hash">
<div colspan="2"> Some
<t invisible="not is_entries"> entries </t>
<t invisible="is_entries"> invoices </t>
will be secured with hash.
<field name="force_hash" class="oe_inline"/><label for="force_hash" string="Yes, confirm and secure them now."/>
</div>
</group>
<group invisible="not abnormal_date_partner_ids">
<div colspan="2">
<t invisible="not is_entries"> Entries </t>
<t invisible="is_entries"> Invoices </t>
dates for
<field name="abnormal_date_partner_ids" widget="many2many_tags" class="oe_inline"/>
fall outside the typical range.
<field name="ignore_abnormal_date" class="oe_inline"/><label for="ignore_abnormal_date" string="Ignore future alerts"/>
</div>
</group>
<group invisible="not abnormal_amount_partner_ids">
<div colspan="2">
<t invisible="not is_entries"> Entries </t>
<t invisible="is_entries"> Invoices </t>
amounts for
<field name="abnormal_amount_partner_ids" widget="many2many_tags" class="oe_inline"/>
fall outside the typical range.
<field name="ignore_abnormal_amount" class="oe_inline"/><label for="ignore_abnormal_amount" string="Ignore future alerts"/>
</div>
</group>
<span class="o_form_label">All selected journal entries will be validated and posted. You won't be able to modify them afterwards.</span>
<footer>
<button string="Post Journal Entries"
<button string="Confirm"
name="validate_move"
type="object"
default_focus="1"
class="btn-primary"
data-hotkey="q"
context="{'validate_analytic': True}"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="x"/>
</footer>
</form>
</field>
</record>
<record id="action_validate_account_move" model="ir.actions.act_window">
<field name="name">Post entries</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">validate.account.move</field>
<field name="view_mode">form</field>
<field name="view_id" ref="validate_account_move_view"/>
<field name="context">{}</field>
<field name="target">new</field>
<field name="help">This wizard will validate all journal entries selected. Once journal entries are validated, you can not update them anymore.</field>
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
<record id="action_validate_account_moves" model="ir.actions.server">
<field name="name">Confirm Entries</field>
<field name="model_id" ref="account.model_account_move" />
<field name="group_ids" eval="[(4, ref('account.group_account_invoice'))]" />
<field name="binding_model_id" ref="account.model_account_move" />
<field name="binding_view_types">list</field>
<field name="binding_view_types">list,kanban</field>
<field name="state">code</field>
<field name="code">action = records.action_validate_moves_with_confirmation()</field>
</record>
</data>