Impacted modules: sale, hr_expense, sale_stock and sale_expense. The reinvoice policy has nothing to do with the fact a product can be expensed or not by employee, because of the vendor bills use case. You can only choose reinvoice policy of your product when hr_expense is installed, which is not very intuitive for users. So this commit makes reinvoice policy field always visible when sale is installed. 'can_be_expensed' field determines if the product can be used in HR expense. However, since reinvoice policy does not make much sense for stockable products, we hide this option and reset it to 'no' when sale_stock module is installed, as we don't handle stock for those expensed products (when confirming expense, the product is already delivered).
7 lines
173 B
Python
7 lines
173 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import analytic
|
|
from . import hr_expense
|
|
from . import sale_order
|