summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_view.js
diff options
context:
space:
mode:
authorXavier Bol (xbo) <xbo@odoo.com>2019-11-18 16:03:28 +0100
committerYannick Tivisse <yti@odoo.com>2019-12-19 10:20:27 +0100
commit46d70e30ef9da4427aed5c74e16cd9541f1c4ebc (patch)
tree7001ffd40571428df8052958fc1588e4aa82475d /addons/web/static/src/js/views/basic/basic_view.js
parent3cff5808f93b6eba1a5143323f180534cd3be572 (diff)
[IMP] sale_timesheet: improve invoicing sale order with timesheets
TaskID: 2088586 Add an 'Invoice timesheets up to mm/dd/yyyy' field on the Invoice Creation modal. This field is only visible when we want to create an invoice for a Service whose Service Policy is set on 'Timesheets on tasks'. This field allows to invoice the timesheets of a service up to the date set on this field. Before this commit, when we create the account.moves.line records, we link timesheets of a service to an invoice. Now, we need to check which timesheets are invoiced, because with the adding of the date for the creation of invoices, we cannot invoice the timesheets after to this date. Then, the process is done at the end of '_create_invoices' in 'sale.order' model when the invoices are created. Override an ir.rule in accout module, because this rule accept all account.analytic.line in its domain and we don't want to accept all timesheets when the user has the access right : "See own timesheets". Therefore, we need to override this rule to apply the others rules in this model for the timesheets.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_view.js')
0 files changed, 0 insertions, 0 deletions