Add timesheet line fields: - ``funding_wish`` to inform about if the user expects a payment for the registered time. - ``treated`` to keep track if the timesheet line funding wish has been taken into account. Task: JOI-13 Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
17 lines
420 B
Python
17 lines
420 B
Python
from odoo import _, fields, models
|
|
|
|
|
|
class AccountAnalyticLine(models.Model):
|
|
_inherit = "account.analytic.line"
|
|
|
|
funding_wish = fields.Selection(
|
|
[
|
|
("free", "Free"),
|
|
("accepted", "Payment accepted"),
|
|
("expected", "Payment expected"),
|
|
],
|
|
string=_("Funding wish"),
|
|
copy=False,
|
|
)
|
|
treated = fields.Boolean(string=_("Treated"), copy=False)
|