[MERGE] forward port branch 10.0 up to e5fd52d28c

This commit is contained in:
Christophe Simonis
2018-04-06 13:40:40 +02:00
2 changed files with 17 additions and 2 deletions
+2 -2
View File
@@ -319,8 +319,8 @@ class PurchaseOrder(models.Model):
def button_approve(self, force=False):
self.write({'state': 'purchase', 'date_approve': fields.Date.context_today(self)})
self._create_picking()
if self.company_id.po_lock == 'lock':
self.write({'state': 'done'})
self.filtered(
lambda p: p.company_id.po_lock == 'lock').write({'state': 'done'})
return {}
@api.multi
+15
View File
@@ -0,0 +1,15 @@
Belgium, 2018-04-06
WINK SA/NV agrees to the terms of the Odoo Corporate Contributor License
Agreement v1.0.
I declare that I am authorized and able to make this agreement and sign this
declaration.
Signed,
Thomas Fossoul tfossoul@wink.be https://github.com/tfossoulw
List of contributors:
Thomas Fossoul tfossoul@wink.be https://github.com/tfossoulw