Hi i use this can we add in sales order to purchase order referans link
https://apps.odoo.com/apps/modules/14.0/bi_convert_purchase_from_sales/
and can we clickable link in purchase order referans
https://prnt.sc/xhzqr6
Thanks for all
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi i use this can we add in sales order to purchase order referans link
https://apps.odoo.com/apps/modules/14.0/bi_convert_purchase_from_sales/
and can we clickable link in purchase order referans
https://prnt.sc/xhzqr6
Thanks for all
Hi,
Try declare a Many2one field in the purchase order and pass the id of the sale order to that many2one field, since you are using the above module, you can pass value using the function action_create_purchase_order in the model 'create.purchaseorder' .
In purchase order
sale_reference_id = fields.Many2one("sale.order",string="Sale Reference")
In create.purchaseorder
in the function action_create_purchase_order update the following part like below.
res.create({
'partner_id' : self.partner_id.id,
'date_order' : str(self.date_order),
'order_line':value,
'origin' : sale_order_name,
'partner_ref' : sale_order_name,
'sale_reference_id': so.id
})
Regards
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
3
Sep 21
|
3215 | ||
How to automate Purchase Order?
Diselesaikan
|
|
3
Des 24
|
13247 | |
|
2
Mar 21
|
9592 | ||
Display field only for one company on list view
Diselesaikan
|
|
1
Mei 25
|
987 | |
importing Purchase Order shown as a RFQ
Diselesaikan
|
|
2
Mei 25
|
2175 |
Hello
Did you find solution to this issue?