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

« back to all changes in this revision

Viewing changes to product_loan/sale.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:
168
168
        if order.is_loan:
169
169
            picking_vals.update({
170
170
                'min_date': order.loan_start_date,
171
 
                'invoice_state': 'loan',
 
171
                'invoice_state': 'none',
172
172
            })
173
173
        return picking_vals
174
174
 
213
213
            'sale_id': order.id,
214
214
            'address_id': order.partner_shipping_id.id,
215
215
            'note': order.note,
216
 
            'invoice_state': 'loan',
 
216
            'invoice_state': 'none',
217
217
            'company_id': order.company_id.id,
218
218
        }
219
219