mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
<quality_control> deleted constraint
This commit is contained in:
committed by
Stefano Consolaro
parent
4695e934c7
commit
917f70b67b
@@ -130,11 +130,6 @@ class QcProof(orm.Model):
|
||||
'active': True,
|
||||
}
|
||||
|
||||
_sql_constraints = [
|
||||
('proof_method_unique', 'UNIQUE (proof_id, method_id)',
|
||||
_('Proof-Method relation alredy exists!')),
|
||||
]
|
||||
|
||||
def name_search(self, cr, uid, name='', args=None, operator='ilike',
|
||||
context=None, limit=None):
|
||||
result = super(QcProof, self).name_search(cr, uid, name=name,
|
||||
|
||||
@@ -323,7 +323,7 @@
|
||||
<field name="model">qc.test.template.line</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Test Template Line">
|
||||
<tree string="Test Template Line" editable="bottom">
|
||||
<field name="test_template_id" select="1" />
|
||||
<field name="proof_id" select="1" />
|
||||
<field name="method_id" select="1" />
|
||||
@@ -525,7 +525,7 @@
|
||||
<field name="actual_value_ql"
|
||||
attrs="{'readonly':[('proof_type','=','quantitative')]}"
|
||||
on_change="onchange_actual_value_ql(actual_value_ql, valid_value_ids)" />
|
||||
<field name="valid_value_ids" readonly="1" />
|
||||
<field name="valid_value_ids" readonly="1" invisible="1" />
|
||||
<field name="actual_value_qt"
|
||||
attrs="{'readonly':[('proof_type','=','qualitative')]}"
|
||||
on_change="onchange_actual_value_qt(uom_id, test_uom_id, actual_value_qt, min_value, max_value)" />
|
||||
|
||||
Reference in New Issue
Block a user