|
@ -26,7 +26,9 @@ def set_pos_line_taxes(cr, registry): |
|
|
select l.id, t.id |
|
|
select l.id, t.id |
|
|
from pos_order_line l |
|
|
from pos_order_line l |
|
|
join pos_order o on l.order_id = o.id |
|
|
join pos_order o on l.order_id = o.id |
|
|
join product_taxes_rel rel on rel.prod_id = l.product_id |
|
|
|
|
|
|
|
|
join product_product p on l.product_id = p.id |
|
|
|
|
|
join product_template pt on pt.id = p.product_tmpl_id |
|
|
|
|
|
join product_taxes_rel rel on rel.prod_id = pt.id |
|
|
join account_tax t on rel.tax_id = t.id |
|
|
join account_tax t on rel.tax_id = t.id |
|
|
where t.company_id = o.company_id""") |
|
|
where t.company_id = o.company_id""") |
|
|
registry['pos.order']._install_tax_detail(cr, SUPERUSER_ID) |
|
|
registry['pos.order']._install_tax_detail(cr, SUPERUSER_ID) |