Skip to content

Commit

Permalink
[FIX] repair: Unable to set default on repair order for invoicing add…
Browse files Browse the repository at this point in the history
…ress

On a SO, you can set a default delivery address or a default invoicing address according to the customer.
The same behavior has been applied on repair order.

opw:2277679

closes odoo#53117

Signed-off-by: Simon Goffin (sig) <[email protected]>
  • Loading branch information
simongoffin committed Jun 17, 2020
1 parent b4fefee commit 8130328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/repair/models/repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _default_stock_location(self):
product_uom_category_id = fields.Many2one(related='product_id.uom_id.category_id')
partner_id = fields.Many2one(
'res.partner', 'Customer',
index=True, states={'confirmed': [('readonly', True)]},
index=True, states={'confirmed': [('readonly', True)]}, change_default=True,
help='Choose partner for whom the order will be invoiced and delivered. You can find a partner by its Name, TIN, Email or Internal Reference.')
address_id = fields.Many2one(
'res.partner', 'Delivery Address',
Expand Down

0 comments on commit 8130328

Please sign in to comment.