[MOV] sale_*: correct file names

Part-of: odoo/odoo#110833
This commit is contained in:
Victor Feyens
2023-02-03 05:09:05 +01:00
parent f938f00877
commit b00e91285f
4 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -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
@@ -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