Browse Source

[CHANGE][0045 - Date de livraison dans le bon de commande]

Remove date_planned and button to set date in tab delivery
Add a new field manual_date_planned
Onchange on order_line to set the first time a date planned
Force the manual_date_planned to all line at confirmation
Change the report for purchase order
[ADD] default value on picking responsible: set the create_uid as responsible (this mean the one that confirm the purchase order
pull/111/head
Thibault Francois 6 years ago
committed by Rémy Taymans
parent
commit
cb1b782314
  1. 2
      beesdoo_inventory/models/stock.py

2
beesdoo_inventory/models/stock.py

@ -5,7 +5,7 @@ class StockPicking(models.Model):
_inherit = 'stock.picking'
max_shipping_date = fields.Datetime("End Shipping Date")
responsible = fields.Many2one('res.partner', string="Responsible")
responsible = fields.Many2one('res.partner', string="Responsible", default=lambda self: self.env.user.partner_id.id)
def _add_follower(self):
if(self.responsible):

Loading…
Cancel
Save