~openerp-community/openobject-addons/trunk-addons-community

« back to all changes in this revision

Viewing changes to product_loan/stock.py

  • Committer: Alexis de Lattre
  • Date: 2014-02-06 16:17:58 UTC
  • Revision ID: alexis@via.ecp.fr-20140206161758-8uwsbpeo1oi6godr
Don't modifiy invoice_state any more : we write 'none' instead of 'loan' (data migration required)
Remove unused views
Move views related to stock to stock_view.xml

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    # Add "loan" invoice state
32
32
    _columns = {
33
33
        'related_loan_end_date' : fields.related('sale_id', 'loan_end_date', type='date', string='Loan End Date'),
34
 
        'invoice_state'         : fields.selection([
35
 
                    ("invoiced", "Invoiced"),
36
 
                    ("2binvoiced", "To Be Invoiced"),
37
 
                    ("loan", "Loan"),
38
 
                    ("none", "Not Applicable")], "Invoice Control",
39
 
                    select=True, required=True, readonly=True, states={'draft': [('readonly', False)]}),
40
34
    }
41
35
 
42
36
stock_picking()