[IMP] make changes into the purchase wizard
bzr revid: rma@tinyerp.com-20120801063304-86p105x07yglycxk
This commit is contained in:
parent
7ab619d0b6
commit
7e00bd4b5c
|
@ -52,7 +52,7 @@ class purchase_config_settings(osv.osv_memory):
|
|||
Example: Product: this product is deprecated, do not purchase more than 5.
|
||||
Supplier: don't forget to ask for an express delivery."""),
|
||||
|
||||
'module_purchase_double_validation': fields.boolean("force two levels of approvals (limit to require a second approval)",
|
||||
'module_purchase_double_validation': fields.boolean("force two levels of approvals",
|
||||
help="""Provide a double validation mechanism for purchases exceeding minimum amount.
|
||||
This installs the module purchase_double_validation."""),
|
||||
'module_purchase_requisition': fields.boolean("manage purchase requisitions",
|
||||
|
|
|
@ -24,7 +24,7 @@ from osv import fields, osv
|
|||
class purchase_config_settings(osv.osv_memory):
|
||||
_inherit = 'purchase.config.settings'
|
||||
_columns = {
|
||||
'limit_amount': fields.integer('Limit to Require a Second Approval',required=True,
|
||||
'limit_amount': fields.integer('Limit to require a second approval',required=True,
|
||||
help="Amount after which validation of purchase is required."),
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,10 @@
|
|||
<field name="inherit_id" ref="purchase.view_purchase_configuration"/>
|
||||
<field name="arch" type="xml">
|
||||
<div name="module_purchase_double_validation" position="inside">
|
||||
<field name="limit_amount" attrs="{'required': [('module_purchase_double_validation','=',True)]}" class="oe_inline"/>
|
||||
<label string="("/>
|
||||
<label for="limit_amount" />
|
||||
<field name="limit_amount" attrs="{'required': [('module_purchase_double_validation','=',True)]}" class="oe_inline"/>
|
||||
<label string=")"/>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
|
Loading…
Reference in New Issue