[IMP] Make the module crm_rma_lot_mass_return installable by correcting view and model name.

[MIRG] Set it as installable = False because it still need to be ported correctly
This commit is contained in:
Joel Grand-Guillaume
2013-11-15 13:57:56 +01:00
parent 69552f5c68
commit 4756af3ed8
4 changed files with 6 additions and 6 deletions

View File

@@ -20,7 +20,7 @@
#
##############################################################################
{'name': 'RMA Claims by shop',
{'name': 'RMA Claims Advance Location',
'version': '1.0',
'category': 'Generic Modules/CRM & SRM',
'depends': ['crm_claim_rma'

View File

@@ -45,6 +45,6 @@ WARNING: This module is currently not yet completely debugged and is waiting his
'wizard/returned_lines_from_serial_wizard_view.xml',
'crm_rma_view.xml',
],
'installable': True,
'installable': False,
'application': True,
}

View File

@@ -4,10 +4,10 @@
<record model="ir.ui.view" id="crm_claim_rma_form_view">
<field name="name">CRM - Claim product return Form</field>
<field name="model">crm.claim</field>
<field name="inherit_id" ref="crm_claim_rma.crm_case_claims_form_view"/>
<field name="inherit_id" ref="crm_claim_rma.crm_claim_rma_form_view"/>
<field name="arch" type="xml">
<xpath expr="//page[@string='Product Return']/group/group[1]" position="inside">
<button name="%(action_create_return_serial)d" string="Mass return from serial/lot" states="draft,open" type="action" target="new"/>
<xpath expr="//page[@string='Product Return']/group/group[2]" position="inside">
<button name="%(action_create_return_serial)d" string="Mass return from serial/lot" states="draft,open" type="action" target="new"/>
</xpath>
</field>
</record>

View File

@@ -146,7 +146,7 @@ class returned_lines_from_serial(orm.TransientModel):
# Method to create return lines
def add_return_lines(self, cr, uid, ids, context=None):
result = self.browse(cr,uid,ids)[0]
return_line = self.pool.get('return.line')
return_line = self.pool.get('claim.line')
# Refactor code : create 1 "createmethode" called by each if with values as parameters
return_line.create(cr, uid, {
'claim_id': context['active_id'],