Skip to content

Commit

Permalink
[FIX] account: disable creation of account.payment from kanban view
Browse files Browse the repository at this point in the history
Creating New records for account.payment from Grouped kanban should not be allowed as they are not consistent and Leads to error. (Eg, Try to create New Payment when grouped by State, Add new Column when grouped by Journal)

With this commit, We disable the creation of new Payment/Relational records from this view.

closes odoo#49438

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
  • Loading branch information
sswapnesh committed Apr 15, 2020
1 parent e608a3f commit 6774f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/account/views/account_payment_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<field name="name">account.payment.kanban</field>
<field name="model">account.payment</field>
<field name="arch" type="xml">
<kanban class="o_kanban_mobile">
<kanban class="o_kanban_mobile" create="0" group_create="0" >
<field name="name"/>
<field name="partner_id"/>
<field name="payment_date"/>
Expand Down

0 comments on commit 6774f9c

Please sign in to comment.