Master wmsstaging3 jco

Depends also on wmsstaging2.  See commits.  
was a copy paste from sale, they can be removed.  Analytic account is not
necessary on purchase?


On Wed, Jun 18, 2014 at 3:38 PM, qdp-odoo <notifications@github.com> wrote:

> In addons/purchase/stock.py:
>
> > +                'invoice_ids': [(4, invoice_line_vals['invoice_id'])],
> > +            })
> > +        return invoice_line_id
> > +
> > +    def _get_master_data(self, cr, uid, move, company, context=None):
> > +        if move.purchase_line_id:
> > +            purchase_order = move.purchase_line_id.order_id
> > +            return purchase_order.partner_id, purchase_order.create_uid.id, purchase_order.pricelist_id.currency_id.id
> > +        return super(stock_move, self)._get_master_data(cr, uid, move, company, context=context)
> > +
> > +    def _get_invoice_line_vals(self, cr, uid, move, partner, inv_type, context=None):
> > +        res = super(stock_move, self)._get_invoice_line_vals(cr, uid, move, partner, inv_type, context=context)
> > +        if move.purchase_line_id:
> > +            purchase_line = move.purchase_line_id
> > +            res['invoice_line_tax_id'] = [(6, 0, [x.id for x in purchase_line.taxes_id])]
> > +            #res['account_analytic_id'] = purc_line.order_id.project_id and sale_line.order_id.project_id.id or False
>
> why these 2 lines of commented code? does it come from a copy/paste? can
> it be removed for better clarity?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/odoo/odoo/pull/598/files#r13914654>.
>