~deneroteam/openerp-rma/openerp-rma

« back to all changes in this revision

Viewing changes to crm_rma_by_shop/claim.py

  • Committer: Joel Grand-Guillaume
  • Date: 2013-12-20 14:16:09 UTC
  • mfrom: (68.1.33 openerp-rma)
  • Revision ID: joel.grandguillaume@camptocamp.com-20131220141609-62vt6kn06q9ut5cb
[MIGR] Migrate the crm_claim_rma to version 7.0:
Split of the module in :
- crm_rma_advance_location (extract the warehouse and location additions that the original module had)
- crm_rma_lot_mass_return(extracted the mass return button to return products from serial)
- crm_claim_ext(trash bin module where land all functions that I wasn't able to restore)
Add module crm_rma_by_shop (new module that add the shop_id on claims and the according filter to work with)
[IMP] Usability improvements to match v7.0 possibilities
[IMP] Cleanup of the code, PEP8, community standards,...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
##############################################################################
 
3
#
 
4
#    Author: Joel Grand-Guillaume
 
5
#    Copyright 2013 Camptocamp SA
 
6
#
 
7
#    This program is free software: you can redistribute it and/or modify
 
8
#    it under the terms of the GNU Affero General Public License as
 
9
#    published by the Free Software Foundation, either version 3 of the
 
10
#    License, or (at your option) any later version.
 
11
#
 
12
#    This program is distributed in the hope that it will be useful,
 
13
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
#    GNU Affero General Public License for more details.
 
16
#
 
17
#    You should have received a copy of the GNU Affero General Public License
 
18
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
#
 
20
##############################################################################
 
21
from openerp.osv import orm, fields
 
22
 
 
23
 
 
24
class crm_claim(orm.Model):
 
25
    """ Crm claim
 
26
    """
 
27
    _inherit = "crm.claim"
 
28
 
 
29
    _columns = {
 
30
        'shop_id': fields.many2one('sale.shop', 'Shop', select="1"),
 
31
    }
 
32