[FIX] purchase: do not allow creation on purchase.order.line

To match the behaviour on sale.order.line.
Purchase line form is expected to be open in popup (where parent is defined),
not individually when creating a line alone is not useful.

Fixes #6644
Closes #12325
This commit is contained in:
Shelton Freddy 2016-06-08 12:23:23 +05:30 committed by Martin Trigaux
parent 34eecbf4be
commit 35536b7206
No known key found for this signature in database
GPG Key ID: 7B0E288E7C0F83A7
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@
<field name="name">purchase.order.line.form</field>
<field name="model">purchase.order.line</field>
<field name="arch" type="xml">
<form string="Purchase Order Line">
<form string="Purchase Order Line" create="false">
<sheet>
<group>
<group>