mirror of
https://github.com/bringout/odoomates.git
synced 2026-04-18 03:32:03 +02:00
fix: om_account_accountant 19.0 compatibility
- Remove group.xml overrides (groups managed by account module in 19.0)
- Remove reconciliation.xml server action (provided by account module)
- Remove menu_action_account_moves_all groups_id clear (incompatible)
- Fix search view: remove group expand attribute
🤖 assisted by claude
This commit is contained in:
parent
1719960a8b
commit
e695a6847c
4 changed files with 4 additions and 39 deletions
|
|
@ -1,25 +1,4 @@
|
|||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
|
||||
<record id="base.module_category_accounting_accounting" model="ir.module.category">
|
||||
<field name="name">Accounting</field>
|
||||
</record>
|
||||
|
||||
<record id="account.group_account_user" model="res.groups">
|
||||
<field name="name">Accountant</field>
|
||||
<field name="category_id" ref="base.module_category_accounting_accounting" />
|
||||
<field name="implied_ids" eval="[(4, ref('account.group_account_invoice'))]" />
|
||||
<field name="users" eval="[(4, ref('base.user_admin')), (4, ref('base.user_root'))]" />
|
||||
</record>
|
||||
|
||||
<record id="account.group_account_manager" model="res.groups">
|
||||
<field name="implied_ids" eval="[(4, ref('account.group_account_user')), (3, ref('account.group_account_invoice'))]" />
|
||||
<field name="name">Advisor</field>
|
||||
</record>
|
||||
|
||||
<record id="account.group_account_readonly" model="res.groups">
|
||||
<field name="name">Auditor</field>
|
||||
<field name="category_id" ref="base.module_category_accounting_accounting" />
|
||||
</record>
|
||||
|
||||
<!-- Security groups are managed by account module in 19.0 -->
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -9,10 +9,6 @@
|
|||
parent="account.menu_finance_configuration"
|
||||
groups="base.group_no_one"/>
|
||||
|
||||
<record id="account.menu_action_account_moves_all" model="ir.ui.menu">
|
||||
<field name="groups_id" eval="[(5,0,0)]" />
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_finance_entries_accounting_journals" name="Journals" parent="account.menu_finance_entries" sequence="2">
|
||||
<menuitem id="menu_action_account_moves_journal_sales" action="account.action_account_moves_journal_sales" groups="account.group_account_readonly" sequence="1"/>
|
||||
<menuitem id="menu_action_account_moves_journal_purchase" action="account.action_account_moves_journal_purchase" groups="account.group_account_readonly" sequence="2"/>
|
||||
|
|
|
|||
|
|
@ -40,9 +40,8 @@
|
|||
<search string="Payment Methods">
|
||||
<field name="name" string="Payment Method"/>
|
||||
<field name="payment_type"/>
|
||||
<group expand="0" string="Group By">
|
||||
<filter name="payment_type" string="Payment Type" context="{'group_by':'payment_type'}"/>
|
||||
</group>
|
||||
<separator/>
|
||||
<filter name="payment_type" string="Payment Type" context="{'group_by':'payment_type'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="action_account_reconciliation" model="ir.actions.server">
|
||||
<field name="name">Reconcile</field>
|
||||
<field name="model_id" ref="account.model_account_move_line"/>
|
||||
<field name="binding_model_id" ref="account.model_account_move_line"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">action = records.reconcile()</field>
|
||||
<field name="groups_id" eval="[(4, ref('account.group_account_user'))]" />
|
||||
</record>
|
||||
|
||||
<!-- Reconciliation action is provided by account module in 19.0 -->
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue