[IMP]: modfiy the rename the category2 object
bzr revid: sbh@tinyerp.com-20100113042227-rrot9vvb6fshzcn1
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user