Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions logistic/waybill_expense.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ def _amount_line(self):
date = fields.Date(
related='waybill_id.date', string='Date', store=True)

@api.one
@api.onchange('product_id')
def on_change_product(self):
self.price_unit = self.product_id.lst_price

def action_invoice_create(self, cr, uid, ids, grouped=False, date_invoice=False, context=None):
invoice_ids = []
partner_currency = {}
Expand Down