diff --git a/jikimo_frontend/static/src/scss/custom_style.scss b/jikimo_frontend/static/src/scss/custom_style.scss index 3626cd08..00db5f3b 100644 --- a/jikimo_frontend/static/src/scss/custom_style.scss +++ b/jikimo_frontend/static/src/scss/custom_style.scss @@ -341,3 +341,15 @@ div:has(.o_required_modifier) > label::before { overflow: visible; } +.o_form_view { + .o_form_sheet_bg .o_form_sheet { + //max-width: none !important; + width: auto !important; + max-width: 98% !important; + } + .o_FormRenderer_chatterContainer { + max-width: none; + } +} + + diff --git a/sf_warehouse/models/model.py b/sf_warehouse/models/model.py index eafdffac..65bdc0ea 100644 --- a/sf_warehouse/models/model.py +++ b/sf_warehouse/models/model.py @@ -237,4 +237,6 @@ class SfProcurementGroup(models.Model): for res1 in res_list: if product_id.categ_id in res1.location_dest_id.product_type: res = res1 + if not res: + res = Rule.search(expression.AND([[('route_id', 'in', warehouse_routes.ids)], domain]), order='route_sequence, sequence', limit=1) return res \ No newline at end of file