Skip to content

Commit

Permalink
[MIG] sale_exception_partner_state: Migration to 17.0
Browse files Browse the repository at this point in the history
closes #762

Signed-off-by: matiasperalta1 <mnp@adhoc.com.ar>
  • Loading branch information
lef-adhoc committed Jan 26, 2024
1 parent 226b221 commit 33fb1f1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
2 changes: 1 addition & 1 deletion sale_exception_partner_state/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Installation

To install this module, you need to:

#. Just Install the module.
#. Just Install the module


Configuration
Expand Down
4 changes: 2 additions & 2 deletions sale_exception_partner_state/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale Exception - Partner State Integration',
'version': "16.0.1.0.0",
'version': "17.0.1.0.0",
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
'license': 'AGPL-3',
Expand All @@ -34,6 +34,6 @@
'demo': [
'data/res_partner_demo.xml',
],
'installable': False,
'installable': True,
'auto_install': True,
}
30 changes: 10 additions & 20 deletions sale_exception_partner_state/wizards/res_config_settings_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,19 @@
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.form.inherit</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="sale.res_config_settings_view_form"/>
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@data-key='sale_management']/div[3]" position="inside">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
</div>
<div class="o_setting_right_pane">
<label for="restrict_sales"/>
<div class="text-muted">
Restrict Sales to Unapproved Partners?
</div>
<div class="mt16">
<field name="restrict_sales" class="o_light_label" widget="radio"/>
</div>
<div attrs="{'invisible':[('restrict_sales','!=','amount_depends')],'required':[('restrict_sales','=','amount_depends')]}">
<label for="restrict_sales_amount"/>
<div class="mt16">
<field name="restrict_sales_amount"/>
</div>
</div>
<block name="quotation_order_setting_container" position="inside">
<setting id="sales_settings_restrict_sales" help="Restrict Sales to Unapproved Partners?">
<field name="restrict_sales" class="o_light_label" widget="radio"/>
<div invisible="restrict_sales != 'amount_depends'" required="restrict_sales == 'amount_depends'">
<label for="restrict_sales_amount"/>
<div class="mt16">
<field name="restrict_sales_amount"/>
</div>
</div>
</xpath>
</setting>
</block>
</field>
</record>
</odoo>

0 comments on commit 33fb1f1

Please sign in to comment.