Skip to content

Commit 41fdc32

Browse files
committed
[IMP] subscription_oca: propagate salesman from sale order to subscription
1 parent 2c2e695 commit 41fdc32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

subscription_oca/models/sale_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def create_subscription(self, lines, subscription_tmpl):
5757
rec = self.env["sale.subscription"].create(
5858
{
5959
"partner_id": self.partner_id.id,
60-
"user_id": self.env.context.get("uid", self.env.uid),
60+
"user_id": self.user_id.id,
6161
"template_id": subscription_tmpl.id,
6262
"pricelist_id": self.partner_id.property_product_pricelist.id,
6363
"date_start": date.today(),

0 commit comments

Comments
 (0)