[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-09 13:46:08 +02:00
committed by Martin Trigaux
parent 34eecbf4be
commit 35536b7206
+1 -1
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>