@@ -1,9 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import account_move_line
|
||||
from . import hr_expense
|
||||
from . import hr_expense_sheet
|
||||
from . import hr_expense_split
|
||||
from . import sale_order
|
||||
from . import product_template
|
||||
from . import account_move
|
||||
from . import sale_order
|
||||
|
||||
+1
-2
@@ -32,8 +32,7 @@ class AccountMoveLine(models.Model):
|
||||
|
||||
def _sale_prepare_sale_line_values(self, order, price):
|
||||
# Add expense quantity to sales order line and update the sales order price because it will be charged to the customer in the end.
|
||||
self.ensure_one()
|
||||
res = super()._sale_prepare_sale_line_values(order, price)
|
||||
if self.expense_id:
|
||||
res.update({'product_uom_qty': self.expense_id.quantity})
|
||||
res['product_uom_qty'] = self.expense_id.quantity
|
||||
return res
|
||||
@@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import account_move
|
||||
from . import account_move_line
|
||||
from . import sale_order_line
|
||||
|
||||
Reference in New Issue
Block a user