← Back to team overview

credativ team mailing list archive

[Bug 903245] Re: Incorrect account when using fiscal position and order policy "Invoice From The Picking"

 

** Tags added: maintenance

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/903245

Title:
  Incorrect account when using fiscal position and order policy "Invoice
  From The Picking"

Status in OpenERP Addons (modules):
  New

Bug description:
  Hello

  Context :
  - Use the French localisation with fiscal position correctly configured.
  - Get a customer (object 'res.partner') with the field "fiscal position" empty

  Scenario :
  - Create a sale order
  - Choose a customer which didn't have a fiscal position
  - Change the fiscal position on the sale order, in my case I choose 'Hors UE'
  - Change the order policy to "Invoice From The Picking"
  - Then  Validate the order
  - Then Validate the picking
  - Then Create the invoice from the picking.

  Result expected:
  - The fiscal position on the invoice should be "Hors EU"
  - The acccount on the invoice line should be mapped correctly.

  Real result
  - The fiscal position on the invoice is correct value is "Hors EU"
  - The account on the invoice line is not correct.

  
  The problem is in the file stock/stock.py in the function :     def action_invoice_create

  The fiscal position value used to apply the fiscal mapping is not the
  value of the sale order but the value of the partner

  ===extract of the file stock.py
                  account_id = self.pool.get('account.fiscal.position').map_account(cr, uid, partner.property_account_position, account_id)
  ===

  
  My customer have on OPW I send it to the support too.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/903245/+subscriptions


References