Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] connector_carepoint: Fix procurement line creation #4

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion connector_carepoint/models/procurement_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def order_line_procurement_data(self, record):
res.update({'origin': sale_id.name,
'product_uom': line_id.product_uom.id,
'ndc_id': ndc_id.id,
'product_id': line_id.product_id,
'product_id': line_id.product_id.id,
})

return res
Expand Down
2 changes: 1 addition & 1 deletion connector_carepoint/tests/models/test_procurement_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def test_order_line_procurement_updates_order_line_proc_vals(self):
'origin': self.unit.binder_for().to_odoo().name,
'product_uom': line.product_uom.id,
'ndc_id': self.unit.binder_for().to_odoo().id,
'product_id': line.product_id,
'product_id': line.product_id.id,
})

def test_order_line_procurement_updates_order_line_proc_vals(self):
Expand Down