[IMP] stock_reserve: black, isort, prettier

This commit is contained in:
Víctor Martínez
2023-01-12 09:54:30 +01:00
parent 0d13a5e115
commit e3a94c607a
3 changed files with 24 additions and 16 deletions

View File

@@ -0,0 +1 @@
../../../../stock_reserve

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

View File

@@ -183,7 +183,8 @@ class StockReservation(models.Model):
# open directly in the form view # open directly in the form view
view_id = self.env.ref("stock.view_move_form").id view_id = self.env.ref("stock.view_move_form").id
action_dict.update( action_dict.update(
views=[(view_id, "form")], res_id=self.move_id.id, views=[(view_id, "form")],
res_id=self.move_id.id,
) )
return action_dict return action_dict