跳至内容
菜单
此问题已终结

What is the link between sale order and invoice, and delivery order and invoice in odoo 11

we have to print invoice reference no in sale order print as well as delivery order.


形象
丢弃
最佳答案

You could be searching these couple of fields. Are from my db in Odoo12, but maybe there were the same at Odoo11.

The sale module, 'sale.order' model have this related field to Invoices.

invoice_ids = fields.Many2many("account.invoice", string='Invoices', compute="_get_invoiced", readonly=True, copy=False)

And the sale_stock module, also in the inherited 'sale.order' model is the line:

picking_ids = fields.One2many('stock.picking', 'sale_id', string='Pickings')

So from there you can get all the info you need.




形象
丢弃
相关帖文 回复 查看 活动
6
5月 24
12559
2
10月 18
6354
4
5月 23
9787
1
5月 17
6166
0
9月 23
1449