跳至内容
菜单
此问题已终结
3 回复
2233 查看

Dear community,


I have created a new line before saves the sale.order, the all parts of the line is correcte but the taxes is not inclued, could you help me please?



vals_list.append((0, 0,  {            'product_id': product.id,            'product_uom_qty': 1,            'sequence': 999,            'order_id': self.id,            'price_unit': -amount,            'tax_id': taxes.ids,            'type_disc': type_disc,        }  ))


self.order_line = vals_list




形象
丢弃
最佳答案

Set default tax

or

Please map customer taxes under the product master. Then, whenever you create a sales order, the tax will load automatically.


形象
丢弃
编写者

Dear Midhun,

I want to copy the taxes about the other line, your option is for incluide a default taxes in all lines or item.

Kind regard

编写者 最佳答案

i try it but the problem is the same

i tried :

- 'tax_id': [(6,0,taxes.ids)]

- 'tax_id':[Command.set(taxes.ids)]


形象
丢弃
最佳答案

Try

'tax_id'= [(6,0,taxes.ids)]

形象
丢弃

'tax_id':[(6,0,taxes.ids)]

编写者

i try it but the problem is the same

i tried :
- 'tax_id'= [(6,0,taxes.ids)]
- 'tax_id'=[Command.set(taxes.ids)]

相关帖文 回复 查看 活动
2
1月 24
2525
2
6月 25
2806
1
10月 24
1421
2
9月 24
1432
0
9月 24
1648