~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to analytic_distribution/invoice.py

  • Committer: jf
  • Date: 2012-11-29 13:00:27 UTC
  • mfrom: (1287.9.8 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20121129130027-564r4yns8t5d2v7d
UTP-368 [FIX] Shouldn't be possible to source a non-stockable product to stock in the order sourcing tool (fix unit test)
lp:~unifield-team/unifield-wm/utp-368

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
            'invoice_id': invoice.id,
69
69
            'currency_id': currency or False,
70
70
            'state': 'dispatch',
71
 
            'posting_date': invoice.date_invoice,
72
 
            'document_date': invoice.document_date,
73
71
        }
74
72
        if context.get('from_direct_inv'):
75
73
            vals['from_direct_inv'] = context['from_direct_inv']
85
83
        })
86
84
        # Open it!
87
85
        return {
88
 
                'name': _('Global analytic distribution'),
 
86
                'name': 'Global analytic distribution',
89
87
                'type': 'ir.actions.act_window',
90
88
                'res_model': 'analytic.distribution.wizard',
91
89
                'view_type': 'form',
145
143
            'currency_id': currency or False,
146
144
            'state': 'dispatch',
147
145
            'account_id': invoice_line.account_id and invoice_line.account_id.id or False,
148
 
            'posting_date': invoice_line.invoice_id.date_invoice,
149
 
            'document_date': invoice_line.invoice_id.document_date,
150
146
        }
151
147
        if context.get('from_direct_inv'):
152
148
            vals['from_direct_inv'] = context['from_direct_inv']
162
158
        })
163
159
        # Open it!
164
160
        return {
165
 
                'name': _('Analytic distribution'),
 
161
                'name': 'Analytic distribution',
166
162
                'type': 'ir.actions.act_window',
167
163
                'res_model': 'analytic.distribution.wizard',
168
164
                'view_type': 'form',