forward port latest changes from 11.0

This commit is contained in:
Jordi Ballester Alomar
2019-07-29 12:32:21 +02:00
committed by ps-tubtim
parent 06f8b54ea3
commit 2c8c39f91c
7 changed files with 98 additions and 7 deletions

View File

@@ -14,3 +14,10 @@ class AccountMoveLine(models.Model):
string='Purchase Order Line',
ondelete='set null', index=True,
)
purchase_id = fields.Many2one(
comodel_name='purchase.order',
related='purchase_line_id.order_id',
string='Purchase Order',
store=True, index=True,
)