[IMP] project, *-: improve the project settings UI

-* = sale_timesheet, sale_project

Issue:
Currently, the fields and description are not appeared in the full width in the
project setting.

Technical description:
  Currently, the content does not appear in full row because col-lg-6 is given in the
  settings component. Other col-lg-6 is empty.So in this commit we have shown content in
  full row.

task-3183771

closes odoo/odoo#114405

Related: odoo/enterprise#37802
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
Prakash Prajapati
2023-07-13 14:46:46 +02:00
parent 4b283a69cc
commit a2cceb04f7
3 changed files with 5 additions and 5 deletions
@@ -112,10 +112,10 @@
<group>
<group name="group_tasks_managment" string="Tasks Management" col="1" class="row mt16 o_settings_container" groups="project.group_project_task_dependencies,project.group_project_milestone,project.group_project_recurring_tasks">
<div>
<setting id="task_dependencies_setting" help="Determine the order in which to perform tasks" groups="project.group_project_task_dependencies">
<setting class="col-lg-12" id="task_dependencies_setting" help="Determine the order in which to perform tasks" groups="project.group_project_task_dependencies">
<field name="allow_task_dependencies"/>
</setting>
<setting id="project_milestone_setting" help="Track major progress points that must be reached to achieve success" groups="project.group_project_milestone">
<setting class="col-lg-12" id="project_milestone_setting" help="Track major progress points that must be reached to achieve success" groups="project.group_project_milestone">
<field name="allow_milestones"/>
</setting>
</div>
@@ -124,7 +124,7 @@
<group name="group_documents_analytics" string="Analytics" col="1" class="row mt16 o_settings_container" attrs="{'invisible': [('allow_rating', '=', False)]}">
<div>
<field name="allow_rating" invisible="1"/>
<setting name="analytic_div" help="Get customer feedback and evaluate the performance of your employees" groups="project.group_project_rating">
<setting class="col-lg-12" name="analytic_div" help="Get customer feedback and evaluate the performance of your employees" groups="project.group_project_rating">
<field name="rating_active"/>
<div class="mt16" attrs="{'invisible':[('rating_active','==',False)]}">
<span class="text-muted o_row ps-1 pb-3">Send a rating request:</span>
@@ -60,7 +60,7 @@
<xpath expr="//group[@name='group_time_managment']" position="after">
<group name="group_sales_invoicing" string="Sales &amp; Invoicing" col="1" class="row mt16 o_settings_container col-lg-6">
<div>
<setting help="Invoice your time and material to customers" id="allow_billable_container">
<setting class="col-lg-12" help="Invoice your time and material to customers" id="allow_billable_container">
<field name="allow_billable"/>
</setting>
</div>
@@ -39,7 +39,7 @@
<field name="arch" type="xml">
<xpath expr="//div[hasclass('o_settings_container')]" position="inside">
<field name="company_id" invisible="1"/>
<setting help="Invoice your time and material to customers" invisible="context.get('hide_allow_billable', False)">
<setting class="col-lg-12" help="Invoice your time and material to customers" invisible="context.get('hide_allow_billable', False)">
<field name="allow_billable"/>
<div attrs="{'invisible': [('allow_billable', '=', False)]}">
<label for="partner_id"/>