| 1 |
|
| 2 |
|
| 3 |
from odoo import models |
| 4 |
|
| 5 |
|
| 6 |
class StockMove(models.Model): |
| 7 |
_inherit = "stock.move" |
| 8 |
|
| 9 |
def _l10n_in_get_product_price_unit(self): |
| 10 |
self.ensure_one() |
| 11 |
return self.product_id.uom_id._compute_price( |
| 12 |
self.product_id.with_company(self.company_id).standard_price, self.product_uom |
| 13 |
) |
| 14 |
|
| 15 |
def _l10n_in_get_product_tax(self): |
| 16 |
self.ensure_one() |
| 17 |
return { |
| 18 |
'is_from_order': False, |
| 19 |
'taxes': ( |
| 20 |
self.picking_code == "incoming" and |
| 21 |
self.product_id.supplier_taxes_id or self.product_id.taxes_id |
| 22 |
), |
| 23 |
} |