diff options
| author | Jérome Maes <jem@openerp.com> | 2017-06-22 11:38:00 +0200 |
|---|---|---|
| committer | Jérome Maes <jem@openerp.com> | 2017-09-13 08:41:30 +0200 |
| commit | 5cf4c350cb4647be294b21ba39dc4637225ad131 (patch) | |
| tree | 9aa900de13e29cda55ae75e63574577692e1506c /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 09189fa809ac2e28d509d6c4780fc191acece44e (diff) | |
[REF] sale,sale_timesheet: cleaning sale analytic
The handling of analytic lines to sell is a little
mess. We can reinvoice analytic lines from timesheet
or expenses, or manual lines.
This commit tries to clean the code, factorize it,
make proper hook (see _sale_postprocess method)
and move specific in its corresponding modules.
Code was properly split, in order to make modules responsible
for only their own features:
- sale module handle the link of SO line to an analytic
line, and increment the delivered qty accordingly.
sale also provide the mecanism of determine magically
the SO lines of an analytic line with an expensable product
to reinvoice it at cost.
- sale_timesheet identifies the so line concerned when
timesheeting on a project directly. Also provide the domain
of analytic line when setting the SO line on AAL.
Cleaning is necessary for futher dev.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
