Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Accounting Sale Entries have no taxes if generated via PoS (Odoo9)

By
Dominic
on 7/18/16, 12:42 PM 215 views

Hello,

The following issue is already known on GitHub (https://github.com/odoo/odoo/issues/10855). As there is no movement I wanted to ask this community if someone has an idea on how to fix the following issue:

It's not possible for accountant to deliver VAT declaration if PoS is used:

Steps to reproduce on Odoo9:

  1. Create a Product with default demo sale and purchase VAT (15%) ;
  2. Open a PoS session;
  3. Sell the product (qty = 1) ; pay the Order ;
  4. Close the session and post entries;
  5. Check generated sale accounting entries ; Open the move.line related to the sale.


Current behavior:

  • 'tax_ids' is not defined

Expected behavior:

  • 'tax_ids' = the vat of the product

I identified the following code snippet as potential problem:

point_of_sale/point_of_sale.py

insert_data('product', {
'name': name,
'quantity': line.qty,
'product_id': line.product_id.id,
'account_id': income_account,
'analytic_account_id': self._prepare_analytic_account(cr, uid, line, context=context),
'credit': ((amount>0) and amount) or 0.0,
'debit': ((amount<0) and -amount) or 0.0,
'partner_id': order.partner_id and self.pool.get("res.partner")._find_accounting_partner(order.partner_id).id or False
})


We suppose by adding "tax_ids" it should work:

'tax_ids': tax_var,

The only difficulty we have is in getting the variable for the tax_ids. 


Does anybody of you have an idea? 


0
Dominic
On 7/25/16, 1:09 PM

After I sent a message to the official GitHub Odoo Repository, I received the Bugfix: https://github.com/odoo/odoo/commit/150bf7dba650bf149720f5e2ac32d42543a672f9

I made some tests and it seems to work perfectly :-) ^^


0

Ermin Trevisan

--Ermin Trevisan--
3548
| 6 3 7
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan
On 7/18/16, 3:05 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/18/16, 12:42 PM
Seen: 215 times
Last updated: 7/25/16, 1:10 PM