Fix import widget type (#7535) (#7536)

(cherry picked from commit 3b3352119f)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot] 2024-06-29 20:50:02 +10:00 committed by GitHub
parent 1f522f47a5
commit 50fdefa473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -229,17 +229,17 @@ class StockItemResource(InvenTreeResource):
is_building = Field( is_building = Field(
attribute='is_building', attribute='is_building',
column_name=_('Building'), column_name=_('Building'),
widget=widgets.IntegerWidget(), widget=widgets.BooleanWidget(),
) )
review_needed = Field( review_needed = Field(
attribute='review_needed', attribute='review_needed',
column_name=_('Review Needed'), column_name=_('Review Needed'),
widget=widgets.IntegerWidget(), widget=widgets.BooleanWidget(),
) )
delete_on_deplete = Field( delete_on_deplete = Field(
attribute='delete_on_deplete', attribute='delete_on_deplete',
column_name=_('Delete on Deplete'), column_name=_('Delete on Deplete'),
widget=widgets.IntegerWidget(), widget=widgets.BooleanWidget(),
) )
# Date management # Date management