summaryrefslogtreecommitdiff
path: root/addons/procurement/procurement.py
diff options
context:
space:
mode:
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>2014-04-23 10:23:22 +0200
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>2014-04-23 10:23:22 +0200
commitd69f5e20ec4d78890a9ca576fa2ba7de18f73cf2 (patch)
tree421c70d904727fe17cb7100f8f9a1cd1debdac72 /addons/procurement/procurement.py
parent6ccdde1f9b2b72a5abd640e61a87703fe54f4249 (diff)
[REF] stock: refactoring set active field on push and pull rules as a normal field (previously related on the route) as the route_id field is not required
bzr revid: qdp-launchpad@openerp.com-20140423082322-ms66ta8zq0uklw32
Diffstat (limited to 'addons/procurement/procurement.py')
-rw-r--r--addons/procurement/procurement.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/procurement/procurement.py b/addons/procurement/procurement.py
index 047ec12980a..f94f45b7f70 100644
--- a/addons/procurement/procurement.py
+++ b/addons/procurement/procurement.py
@@ -79,6 +79,7 @@ class procurement_rule(osv.osv):
_columns = {
'name': fields.char('Name', required=True,
help="This field will fill the packing origin and the name of its moves"),
+ 'active': fields.boolean('Active', help="If unchecked, it will allow you to hide the rule without removing it."),
'group_propagation_option': fields.selection([('none', 'Leave Empty'), ('propagate', 'Propagate'), ('fixed', 'Fixed')], string="Propagation of Procurement Group"),
'group_id': fields.many2one('procurement.group', 'Fixed Procurement Group'),
'action': fields.selection(selection=lambda s, cr, uid, context=None: s._get_action(cr, uid, context=context),
@@ -90,6 +91,7 @@ class procurement_rule(osv.osv):
_defaults = {
'group_propagation_option': 'propagate',
'sequence': 20,
+ 'active': True,
}