Skip to content

Commit

Permalink
Merge c6af003 into 580b5b7
Browse files Browse the repository at this point in the history
  • Loading branch information
lonelyleaves committed Jul 11, 2018
2 parents 580b5b7 + c6af003 commit 7b1a949
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sell/models/sell_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def _compute_delivery(self):
u'销售员',
ondelete='restrict',
states=READONLY_STATES,
default=lambda self: self.env.user,
help=u'单据经办人',
)
date = fields.Date(u'单据日期',
Expand Down Expand Up @@ -201,6 +200,10 @@ def onchange_partner_address(self):
if self.address_id:
self.contact = self.address_id.contact
self.mobile = self.address_id.mobile
if self.partner_id.responsible_id:
self.user_id = self.partner_id.responsible_id
else:
self.user_id = self._uid

@api.onchange('partner_id')
def onchange_partner_id(self):
Expand Down

0 comments on commit 7b1a949

Please sign in to comment.