Skip to content

Commit

Permalink
[REL] sale_exception_partner_state: first release on 12.0 (ingadhoc#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas L. Soto authored and jjscarafia committed Nov 5, 2019
1 parent fd3a53e commit 6d60409
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions sale_exception_partner_state/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Sale Exception - Partner State Integration
==========================================

Integrate partner_state and sale_exceptions, it adds the option to restrict sale orders confirmation for not approved partners globaly or depending a certain amount
Integrate partner_state and sale_exceptions. It adds the option to restrict sale orders confirmation for not approved partners globaly or depending a certain amount.

Installation
============
Expand All @@ -29,7 +29,7 @@ Configuration

To configure this module, you need to:

#. In Company/Configuration you set to restring sales.
#. Go to Sales / Configuration / Settings / Quotations & Orders and set "Restrict sales?" as per your needs.


Usage
Expand Down
2 changes: 1 addition & 1 deletion sale_exception_partner_state/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
],
'demo': [
],
'installable': False,
'installable': True,
'auto_install': True,
}
2 changes: 0 additions & 2 deletions sale_exception_partner_state/data/exception_rule_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<field name="description">You can not sell to an Unapproved Partner on this company</field>
<field name="sequence">10</field>
<field name="model">sale.order</field>
<field name="rule_group">sale</field>
<field name="code">if not object.check_unapproved_partner_ok():
failed = True</field>
<field name="active" eval="True"/>
Expand All @@ -17,7 +16,6 @@
<field name="description">You can not sell to an Unapproved Partner this amount on this company</field>
<field name="sequence">10</field>
<field name="model">sale.order</field>
<field name="rule_group">sale</field>
<field name="code">if not object.check_unapproved_partner_amount_ok():
failed = True</field>
<field name="active" eval="True"/>
Expand Down
6 changes: 4 additions & 2 deletions sale_exception_partner_state/wizards/res_config_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'

restrict_sales = fields.Selection(
related='company_id.restrict_sales'
related='company_id.restrict_sales',
readonly=False,
)
restrict_sales_amount = fields.Float(
related='company_id.restrict_sales_amount'
related='company_id.restrict_sales_amount',
readonly=False,
)

0 comments on commit 6d60409

Please sign in to comment.