[ADD] create `project_timesheet_funding_wish
` add-on
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>
This commit is contained in:
committed by
Stéphan Sainléger
parent
1f8baa73d1
commit
56f757505b
16
project_timesheet_funding_wish/models/hr_timesheet.py
Normal file
16
project_timesheet_funding_wish/models/hr_timesheet.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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)
|
Reference in New Issue
Block a user