[IMP]: modfiy the rename the category2 object

bzr revid: sbh@tinyerp.com-20100113042227-rrot9vvb6fshzcn1
This commit is contained in:
sbh (Open ERP)
2010-01-13 09:52:27 +05:30
parent 98883513a4
commit f3711acdc0
2 changed files with 13 additions and 2 deletions
+11
View File
@@ -53,6 +53,17 @@ class crm_claim_categ(osv.osv):
}
crm_claim_categ()
class crm_claim_type(osv.osv):
_name = "crm.claim.type"
_description = "Claim Type"
_rec_name = "name"
_columns = {
'name': fields.char('Claim Type Name', size=64, required=True, translate=True),
'section_id': fields.many2one('crm.case.section', 'Case Section'),
}
crm_claim_type()
class crm_claim(osv.osv):
_name = "crm.claim"
_description = "Claim Cases"
+2 -2
View File
@@ -21,11 +21,11 @@
<!--
Case Category2
-->
<record model="crm.case.category2" id="category_claim1">
<record model="crm.claim.type" id="category_claim1">
<field name="name">Corrective</field>
<field name="section_id" ref="section_sales_department"/>
</record>
<record model="crm.case.category2" id="category_claim2">
<record model="crm.claim.type" id="category_claim2">
<field name="name">Preventive</field>
<field name="section_id" ref="section_sales_department"/>
</record>