Features: 1) Add form attribute to StockInline class to use StockForm.
Fixes: None; Extra: None;
This commit is contained in:
parent
d2b3dccda9
commit
0cd2e417cb
1 changed files with 1 additions and 0 deletions
|
|
@ -164,6 +164,7 @@ class ProductImageInline(TabularInline): # type: ignore [type-arg]
|
|||
class StockInline(TabularInline): # type: ignore [type-arg]
|
||||
model = Stock
|
||||
extra = 0
|
||||
form = StockForm
|
||||
is_navtab = True
|
||||
verbose_name = _("stock")
|
||||
verbose_name_plural = _("stocks")
|
||||
|
|
|
|||
Loading…
Reference in a new issue