Skip to content

Commit

Permalink
[MIG] documents_quality: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagordz committed Aug 28, 2024
1 parent 1eb322f commit 3a70a88
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 145 deletions.
2 changes: 1 addition & 1 deletion documents_quality/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"website": "https://github.com/ursais/osi-addons",
"author": "Open Source Integrators",
"maintainer": "Open Source Integrators",
"version": "14.0.1.0.0",
"version": "17.0.1.0.0",
"license": "LGPL-3",
"depends": ["documents", "quality"],
"data": [
Expand Down
246 changes: 102 additions & 144 deletions documents_quality/views/res_config_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,163 +6,121 @@
<field name="priority" eval="70" />
<field name="inherit_id" ref="base.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[hasclass('o_documents_block')]" position="attributes">
<attribute name="invisible">0</attribute>
<xpath expr="//app[@name='documents']" position="attributes">
<attribute name="notApp">0</attribute>
</xpath>
<xpath expr="//div[hasclass('o_documents_block')]" position="inside">
<xpath expr="//app[@name='documents']" position="inside">
<!-- Quality Control Points -->
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="documents_quality_point_settings" />
</div>
<div class="o_setting_right_pane o_documents_right_pane">
<label for="documents_quality_point_settings" />
<span
class="fa fa-lg fa-building-o"
title="Values set here are company-specific."
aria-label="Values set here are company-specific."
groups="base.group_multi_company"
role="img"
/>
<div class="row">
<div class="text-muted col-md-12">
Centralize files attached to quality control points
</div>
<block>
<setting
company_dependent="1"
help="Centralize files attached to quality control points"
>
<field name="documents_quality_point_settings" />
<div
class="content-group"
invisible="not documents_quality_point_settings"
>
<div class="row mt16">
<label
class="o_form_label col-lg-3"
for="quality_point_folder"
string="Workspace"
/>
<field
name="quality_point_folder"
required="documents_quality_point_settings"
/>
</div>
<div
class="content-group"
attrs="{'invisible' : [('documents_quality_point_settings', '=', False)]}"
>
<div class="row mt16">
<label
class="o_form_label col-lg-3"
for="quality_point_folder"
string="Workspace"
/>
<field
name="quality_point_folder"
attrs="{'required' : [('documents_quality_point_settings', '=', True)]}"
/>
</div>
<div class="row">
<label
class="o_form_label col-lg-3"
for="quality_point_tags"
string="Default Tags"
/>
<field
name="quality_point_tags"
widget="many2many_tags"
domain="[('folder_id','=', quality_point_folder)]"
/>
</div>
<div class="row">
<label
class="o_form_label col-lg-3"
for="quality_point_tags"
string="Default Tags"
/>
<field
name="quality_point_tags"
widget="many2many_tags"
domain="[('folder_id','=', quality_point_folder)]"
/>
</div>
</div>
</div>
</div>
</setting>
</block>
<!-- Quality Checks -->
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="documents_quality_check_settings" />
</div>
<div class="o_setting_right_pane o_documents_right_pane">
<label for="documents_quality_check_settings" />
<span
class="fa fa-lg fa-building-o"
title="Values set here are company-specific."
aria-label="Values set here are company-specific."
groups="base.group_multi_company"
role="img"
/>
<div class="row">
<div class="text-muted col-md-12">
Centralize files attached to quality checks
</div>
<block>
<setting
company_dependent="1"
help="Centralize files attached to quality checks"
>
<field name="documents_quality_check_settings" />
<div
class="content-group"
invisible="not documents_quality_check_settings"
>
<div class="row mt16">
<label
class="o_form_label col-lg-3"
for="quality_check_folder"
string="Workspace"
/>
<field
name="quality_check_folder"
required="documents_quality_check_settings"
/>
</div>
<div
class="content-group"
attrs="{'invisible' : [('documents_quality_check_settings', '=', False)]}"
>
<div class="row mt16">
<label
class="o_form_label col-lg-3"
for="quality_check_folder"
string="Workspace"
/>
<field
name="quality_check_folder"
attrs="{'required' : [('documents_quality_check_settings', '=', True)]}"
/>
</div>
<div class="row">
<label
class="o_form_label col-lg-3"
for="quality_check_tags"
string="Default Tags"
/>
<field
name="quality_check_tags"
widget="many2many_tags"
domain="[('folder_id','=', quality_check_folder)]"
/>
</div>
<div class="row">
<label
class="o_form_label col-lg-3"
for="quality_check_tags"
string="Default Tags"
/>
<field
name="quality_check_tags"
widget="many2many_tags"
domain="[('folder_id','=', quality_check_folder)]"
/>
</div>
</div>
</div>
</div>
</setting>
</block>
<!-- Quality Alerts -->
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="documents_quality_alert_settings" />
</div>
<div class="o_setting_right_pane o_documents_right_pane">
<label for="documents_quality_alert_settings" />
<span
class="fa fa-lg fa-building-o"
title="Values set here are company-specific."
aria-label="Values set here are company-specific."
groups="base.group_multi_company"
role="img"
/>
<div class="row">
<div class="text-muted col-md-12">
Centralize files attached to quality alerts
</div>
<block>
<setting
company_dependent="1"
help="Centralize files attached to quality alerts"
>
<field name="documents_quality_alert_settings" />
<div
class="content-group"
invisible="not documents_quality_alert_settings"
>
<div class="row mt16">
<label
class="o_form_label col-lg-3"
for="quality_alert_folder"
string="Workspace"
/>
<field
name="quality_alert_folder"
required="documents_quality_alert_settings"
/>
</div>
<div
class="content-group"
attrs="{'invisible' : [('documents_quality_alert_settings', '=', False)]}"
>
<div class="row mt16">
<label
class="o_form_label col-lg-3"
for="quality_alert_folder"
string="Workspace"
/>
<field
name="quality_alert_folder"
attrs="{'required' : [('documents_quality_alert_settings', '=', True)]}"
/>
</div>
<div class="row">
<label
class="o_form_label col-lg-3"
for="quality_alert_tags"
string="Default Tags"
/>
<field
name="quality_alert_tags"
widget="many2many_tags"
domain="[('folder_id','=', quality_alert_folder)]"
/>
</div>
<div class="row">
<label
class="o_form_label col-lg-3"
for="quality_alert_tags"
string="Default Tags"
/>
<field
name="quality_alert_tags"
widget="many2many_tags"
domain="[('folder_id','=', quality_alert_folder)]"
/>
</div>
</div>
</div>
</div>
</setting>
</block>
</xpath>
</field>
</record>
Expand Down

0 comments on commit 3a70a88

Please sign in to comment.