mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[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:
@@ -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'
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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 n°" 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>
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user