Lunch product: Multi Company
diff --git a/addons/lunch/static/src/scss/lunch_view.scss b/addons/lunch/static/src/scss/lunch_view.scss
index a19834d809f..6b7056f96f7 100644
--- a/addons/lunch/static/src/scss/lunch_view.scss
+++ b/addons/lunch/static/src/scss/lunch_view.scss
@@ -9,9 +9,6 @@
flex: 0 0 auto;
border-bottom: 1px solid #CED4DA;
background-color: white;
- position: fixed;
- z-index: 50;
- width: 90%;
}
.o_lunch_purple {
@@ -53,12 +50,6 @@
}
}
-.o_kanban_view {
- &.o_lunch_kanban_view {
- padding-top: 11rem;
- }
-}
-
.o_lunch_image {
img {
max-width: 128px;
diff --git a/addons/lunch/tests/test_supplier.py b/addons/lunch/tests/test_supplier.py
index 9040db7befd..1d2f901c2ba 100644
--- a/addons/lunch/tests/test_supplier.py
+++ b/addons/lunch/tests/test_supplier.py
@@ -86,7 +86,8 @@ env['lunch.supplier'].browse([{self.supplier_kothai.id}])._send_auto_email()""")
with patch.object(fields.Date, 'context_today', return_value=self.monday_1pm.date()) as _:
line = self.env['lunch.order'].create({
'product_id': self.product_pizza.id,
- 'date': self.monday_1pm.date()
+ 'date': self.monday_1pm.date(),
+ 'supplier_id': self.supplier_pizza_inn.id,
})
line.action_order()
@@ -99,11 +100,13 @@ env['lunch.supplier'].browse([{self.supplier_kothai.id}])._send_auto_email()""")
line = self.env['lunch.order'].create({
'product_id': self.product_pizza.id,
'topping_ids_1': [(6, 0, [self.topping_olives.id])],
- 'date': self.monday_1pm.date()
+ 'date': self.monday_1pm.date(),
+ 'supplier_id': self.supplier_pizza_inn.id,
})
line2 = self.env['lunch.order'].create({
'product_id': self.product_sandwich_tuna.id,
- 'date': self.monday_1pm.date()
+ 'date': self.monday_1pm.date(),
+ 'supplier_id': self.supplier_coin_gourmand.id,
})
(line | line2).action_order()
@@ -118,19 +121,22 @@ env['lunch.supplier'].browse([{self.supplier_kothai.id}])._send_auto_email()""")
line_1 = self.env['lunch.order'].create({
'product_id': self.product_pizza.id,
'quantity': 2,
- 'date': self.monday_1pm.date()
+ 'date': self.monday_1pm.date(),
+ 'supplier_id': self.product_pizza.id,
})
line_2 = self.env['lunch.order'].create({
'product_id': self.product_pizza.id,
'topping_ids_1': [(6, 0, [self.topping_olives.id])],
- 'date': self.monday_1pm.date()
+ 'date': self.monday_1pm.date(),
+ 'supplier_id': self.product_pizza.id,
})
line_3 = self.env['lunch.order'].create({
'product_id': self.product_sandwich_tuna.id,
'quantity': 2,
- 'date': self.monday_1pm.date()
+ 'date': self.monday_1pm.date(),
+ 'supplier_id': self.supplier_coin_gourmand.id,
})
(line_1 | line_2 | line_3).action_order()
diff --git a/addons/lunch/views/lunch_orders_views.xml b/addons/lunch/views/lunch_orders_views.xml
index 0e876644370..15017e4b8bf 100644
--- a/addons/lunch/views/lunch_orders_views.xml
+++ b/addons/lunch/views/lunch_orders_views.xml
@@ -40,6 +40,7 @@
+
@@ -193,6 +194,7 @@
+
@@ -216,7 +218,7 @@
-
+
@@ -224,7 +226,7 @@
-
+
diff --git a/addons/lunch/views/lunch_product_views.xml b/addons/lunch/views/lunch_product_views.xml
index efca75e6628..c92dede9b57 100644
--- a/addons/lunch/views/lunch_product_views.xml
+++ b/addons/lunch/views/lunch_product_views.xml
@@ -10,7 +10,6 @@
-
@@ -20,6 +19,8 @@
+
+
diff --git a/addons/web/static/src/webclient/commands/command_palette.scss b/addons/web/static/src/webclient/commands/command_palette.scss
index 43d35e8166f..19d844f3446 100644
--- a/addons/web/static/src/webclient/commands/command_palette.scss
+++ b/addons/web/static/src/webclient/commands/command_palette.scss
@@ -60,10 +60,6 @@
line-height: 1.8em;
height: 2.8em;
- &.focused {
- background: #00a09d26;
- }
-
kbd {
background-color: #f4f7f8;
border-radius: 3px;