[MERGE] forward port branch 10.0 up to e5fd52d28c
This commit is contained in:
@@ -319,8 +319,8 @@ class PurchaseOrder(models.Model):
|
|||||||
def button_approve(self, force=False):
|
def button_approve(self, force=False):
|
||||||
self.write({'state': 'purchase', 'date_approve': fields.Date.context_today(self)})
|
self.write({'state': 'purchase', 'date_approve': fields.Date.context_today(self)})
|
||||||
self._create_picking()
|
self._create_picking()
|
||||||
if self.company_id.po_lock == 'lock':
|
self.filtered(
|
||||||
self.write({'state': 'done'})
|
lambda p: p.company_id.po_lock == 'lock').write({'state': 'done'})
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user