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] purchase_stock_ux: new origin_description field to show in Delivery Slip #170

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion purchase_stock_ux/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Purchase Stock UX',
'version': "16.0.1.1.0",
'version': "16.0.1.2.0",
'category': 'Purchases',
'sequence': 14,
'summary': '',
Expand Down
6 changes: 6 additions & 0 deletions purchase_stock_ux/models/stock_move.py
Expand Up @@ -11,3 +11,9 @@ class StockMove(models.Model):
purchase_id = fields.Many2one(
related='purchase_line_id.order_id',
)

def _compute_origin_description(self):
super()._compute_origin_description()
for rec in self:
if rec.purchase_line_id:
rec.origin_description = rec.purchase_line_id.name