mirror of
https://github.com/bringout/odoomates.git
synced 2026-04-22 06:12:03 +02:00
fix: 19.0 compatibility for accounting_pdf_reports, om_account_budget, om_recurring_payments
- Convert attrs dict to inline attributes (invisible/readonly/required)
- Convert states attribute to invisible conditions
- Remove deprecated numbercall from ir.cron
- Remove deprecated domain from account.budget.post
- Fix group assignments in security XML
- Fix search view group-by references
🤖 assisted by claude
This commit is contained in:
parent
348f7abe95
commit
5e769f4b39
9 changed files with 44 additions and 69 deletions
|
|
@ -10,7 +10,6 @@
|
|||
<field name="code">model.action_generate_payment()</field>
|
||||
<field name='interval_number'>1</field>
|
||||
<field name='interval_type'>days</field>
|
||||
<field name="numbercall">-1</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
<field name="arch" type="xml">
|
||||
<form string="Recurring Payment">
|
||||
<header>
|
||||
<button name="action_done" states="draft" string="Done" type="object"
|
||||
<button name="action_done" invisible="state != 'draft'" string="Done" type="object"
|
||||
class="oe_highlight"/>
|
||||
<button name="action_draft" states="done" string="Set To Draft"
|
||||
<button name="action_draft" invisible="state != 'done'" string="Set To Draft"
|
||||
type="object"/>
|
||||
<field name="state" widget="statusbar"/>
|
||||
</header>
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
<group>
|
||||
<group>
|
||||
<h1>
|
||||
<field name="name" attrs="{'invisible': [('name','=', False)]}"/>
|
||||
<field name="name" invisible="not name"/>
|
||||
</h1>
|
||||
</group>
|
||||
</group>
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
<field name="state" widget="badge"/>
|
||||
<button name="action_create_payment" type="object"
|
||||
string="Create Payment"
|
||||
attrs="{'invisible': [('state', '=', 'done')]}"/>
|
||||
invisible="state == 'done'"/>
|
||||
</list>
|
||||
<form string="Recurring Payment Line" edit="0">
|
||||
<group>
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
<field name="arch" type="xml">
|
||||
<form string="Recurring Template">
|
||||
<header>
|
||||
<button name="action_done" states="draft" string="Confirm" type="object" class="oe_highlight"/>
|
||||
<button name="action_draft" states="done" string="Set To Draft" type="object"/>
|
||||
<button name="action_done" invisible="state != 'draft'" string="Confirm" type="object" class="oe_highlight"/>
|
||||
<button name="action_draft" invisible="state != 'done'" string="Set To Draft" type="object"/>
|
||||
<field name="state" widget="statusbar"/>
|
||||
</header>
|
||||
<sheet>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue