diff --git a/fusion_plating/fusion_plating/scripts/bt_check_action_view.py b/fusion_plating/fusion_plating/scripts/bt_check_action_view.py new file mode 100644 index 00000000..a75a7572 --- /dev/null +++ b/fusion_plating/fusion_plating/scripts/bt_check_action_view.py @@ -0,0 +1,21 @@ +step = env['fp.job.step'].search([('job_id.name', '=', 'WH/JOB/00337')], limit=1, order='sequence') +print('Step:', step.name) + +# Simulate the EXACT OWL get_views call for this action +result = step._fp_open_input_wizard(advance_after=True) +print('view_id:', result.get('view_id')) +print('views:', result.get('views')) + +# Now invoke get_views with this view_id explicitly +view_id = result.get('view_id') +W = env['fp.job.step.input.wizard'] +gv = W.get_views([(view_id, 'form')]) +print('models served:') +for mname, minfo in gv['models'].items(): + print(' ', mname, '->', list((minfo.get('fields') or {}).keys())[:10]) + +# Check arch +arch = gv['views']['form']['arch'] +print('arch has ?', '?', '', ' attribute does most of the work; these +// rules tighten the inner padding so the icon hugs the cell edges. +.o_list_view td:has(> button.o_fp_step_info_btn), +.o_list_view td:has(> .o_list_button_cell button.o_fp_step_info_btn) { + width: 32px !important; + max-width: 32px !important; + min-width: 32px !important; + padding-left: 2px !important; + padding-right: 2px !important; +} +button.o_fp_step_info_btn { + padding: 2px 6px !important; + margin: 0 !important; + min-width: 0 !important; + line-height: 1 !important; +} +button.o_fp_step_info_btn .fa, +button.o_fp_step_info_btn i { + margin: 0 !important; +} + // Container around the rich-text instructions inside the quick-look // modal. Bordered + scrollable + readable in both light and dark modes. .o_fp_quick_look_instructions { diff --git a/fusion_plating/fusion_plating_jobs/views/fp_job_form_inherit.xml b/fusion_plating/fusion_plating_jobs/views/fp_job_form_inherit.xml index 8799164b..4052f1ef 100644 --- a/fusion_plating/fusion_plating_jobs/views/fp_job_form_inherit.xml +++ b/fusion_plating/fusion_plating_jobs/views/fp_job_form_inherit.xml @@ -86,7 +86,8 @@