Skip to content

Commit

Permalink
Merge PR #552 into 11.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jul 1, 2019
2 parents ab95b1a + 6b58d0a commit 548bbe7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion account_invoice_pricelist/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
'name': 'Account - Pricelist on Invoices',
'version': '11.0.1.0.0',
'version': '11.0.1.0.1',
'summary': 'Add partner pricelist on invoices',
'category': 'Accounting & Finance',
'author': 'GRAP,'
Expand Down
6 changes: 4 additions & 2 deletions account_invoice_pricelist/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ def _onchange_product_id_account_invoice_pricelist(self):
fiscal_position=(
self.invoice_id.partner_id.property_account_position_id.id)
)
self.price_unit = self.env['account.tax']._fix_tax_included_price(
product.price, product.taxes_id, self.invoice_line_tax_ids)
tax_obj = self.env['account.tax']
self.price_unit = tax_obj._fix_tax_included_price_company(
product.price, product.taxes_id, self.invoice_line_tax_ids,
self.company_id)

@api.multi
def update_from_pricelist(self):
Expand Down

0 comments on commit 548bbe7

Please sign in to comment.