Skip to content

Commit

Permalink
[MIG] documents_purchase: 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 dc1c00d commit 3ad4f44
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 51 deletions.
2 changes: 1 addition & 1 deletion documents_purchase/__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", "purchase"],
"data": [
Expand Down
86 changes: 36 additions & 50 deletions documents_purchase/views/res_config_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,60 +6,46 @@
<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">
<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_purchase_settings" />
</div>
<div class="o_setting_right_pane o_documents_right_pane">
<label for="documents_purchase_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 request for quotations and purchase orders
</div>
<xpath expr="//app[@name='documents']" position="inside">
<block>
<setting
company_dependent="1"
help="Centralize files attached to request for quotations and purchase orders"
>
<field name="documents_purchase_settings" />
<div
class="content-group"
invisible="not documents_purchase_settings"
>
<div class="row mt16">
<label
class="o_form_label col-lg-3"
for="purchase_folder"
string="Workspace"
/>
<field
name="purchase_folder"
required="documents_purchase_settings"
/>
</div>
<div
class="content-group"
attrs="{'invisible' : [('documents_purchase_settings', '=', False)]}"
>
<div class="row mt16">
<label
class="o_form_label col-lg-3"
for="purchase_folder"
string="Workspace"
/>
<field
name="purchase_folder"
attrs="{'required' : [('documents_purchase_settings', '=', True)]}"
/>
</div>
<div class="row">
<label
class="o_form_label col-lg-3"
for="purchase_tags"
string="Default Tags"
/>
<field
name="purchase_tags"
widget="many2many_tags"
domain="[('folder_id','=', purchase_folder)]"
/>
</div>
<div class="row">
<label
class="o_form_label col-lg-3"
for="purchase_tags"
string="Default Tags"
/>
<field
name="purchase_tags"
widget="many2many_tags"
domain="[('folder_id','=', purchase_folder)]"
/>
</div>
</div>
</div>
</div>
</setting>
</block>
</xpath>
</field>
</record>
Expand Down

0 comments on commit 3ad4f44

Please sign in to comment.