Commit Graph
117975 Commits
Author SHA1 Message Date
Dinar b3aeb3b2e7 [IMP] pos_discount: possibility to redefine the discount button
Was not able to make inheritance of  POS Discount objects via "extend" or
"include" functions

Closes #25227
2018-06-13 15:47:09 +02:00
Dinar 08b297289d [IMP] pos_restaurant: possibility to redefine new buttons and screens
Was not able to make inheritance "action_button" and "screens" POS Restaurant
objects via "extend" or "include" functions.

Closes #25150
2018-06-13 15:44:27 +02:00
David Arnold 9447bedf85 [IMP] pos: add vat number to search options of customer in pos
Closes #23248.

Signed-off-by: "David Arnold" <"dar@xoe.solutions">
2018-06-13 14:48:13 +02:00
Akim Juillerat 25d63b97a0 [IMP] maintenance: restrict deletion of equipment if requests exists
Loosing data about existing requests is not good idea when managing
maintenance. It is better to ensure there are no ongoing requests
and prevent deletion if it is the case.

Closes #18794 .
2018-06-13 12:54:48 +02:00
Jeremy Kersten 4fe0981c33 [FIX] web_editor: remove website dependence introduced by 4f9d9d169f
Now we use the get_view_id method that already do the job to filter the views
based on the current website.

Related to #24429
2018-06-13 11:14:02 +02:00
jeffery chen fan f0e8965d2a [IMP] l10n_cn: Rewrite description for l10n_cn
rewrite description for l10n_cn to avoid confusion, as this module is the base for the another two modules which is the actully addons for chart of account
2018-06-13 10:24:14 +02:00
Miquel Raïch df05c81396 [IMP] account: set create=False on account.move.line form
The tree form has it already
To be consistent

Closes #22854
2018-06-12 18:03:23 +02:00
Yannick Tivisse ce1f1b69e7 [IMP] purchase: Extract code from _compute_amount to allow inheritance
Purpose
=======

Currently the discount mechanism is not implemented in the purchase module.
This limitation is could be avoided if the _compute_amount arguments could
be overwritten.

While waiting the feature to be implemented in master, we simply introduce
a hook method to allow an easy inheritance of the argument values.

Closes #11235

PS: Also move compute methods under the fields definition to follow
    the coding guidelines
2018-06-12 17:26:30 +02:00
Yannick Vaucher da8d4b5b99 [IMP] account_bank_statement_import: Update module description
When using Community Edition you don't have access to any of the formats you
will thus rely on odoo community to create types of import based on this
generic module.
2018-06-12 15:01:48 +02:00
Sergio Zanchetta 9e418ccaf9 [IMP] pos_restaurant: make config items inheritable
Closes #22720
2018-06-12 11:32:45 +02:00
Sergio Zanchetta 49b93a08f5 [CLA] Signature for primes2h
Done at #22720
2018-06-12 11:29:40 +02:00
Sylvain LE GAL 5a6f6edb17 [IMP] point_of_sale: move barcode field into base
The field was already declared in base but added in the view in point_of_sale
only.

Remove the duplicated field definition on the model.

Closes #25070
Fixes #13544
2018-06-12 10:35:25 +02:00
Simon Lejeune ae6b85cf7a [FIX] web_tour: properly adapt to 9c262fe6f8 2018-06-11 21:44:34 +02:00
Pierre Masereel 76662a0a66 [REF] stock, delivery: entire package manipulation
We added a model to work easily with packages, using the quant packages
was not a good solution to move entire package and plan package moves,
because we always had to give the picking in context, and create some
move lines, so it was only possible when state was assigned (when move
lines exists)

So we created a model package level, linked to picking, move and move
lines allowing to easily plan package transfer and put in pack.
2018-06-11 17:46:19 +02:00
Adrien Dieudonne b4a8338959 [FIX] barcodes: hide barcode input 2018-06-11 17:01:33 +02:00
Simon Lejeune d4eb1e33a1 [FIX] stock: action_done: picking_type_id in created move
If the user only fills move lines and not move, this method will create
the needed ones. When creating them, a picking_type_id was not set.

task-1830757
2018-06-11 17:01:15 +02:00
William Henrotin d8887c5346 [FIX] stock: mandatory default source location
On the picking type form, the default source location is not mandatory
for 'customer' picking types. If this field is empty, creating a
'customer' picking will set a vendor location as source one.

task-1830757
2018-06-11 16:59:57 +02:00
Arnaud Baes 9c262fe6f8 [REF] web_tour: allows to include RunningTourActionHelper
Moves this class in an Odoo module so that other addons are able to
require and include the class in order to add different helpers.

This will be usefil in the `stock_barcode` module that will add a `scan`
helper.
2018-06-11 16:56:55 +02:00
Simon Lejeune cea38a8ea9 [REF] stock: scrap action
Complete the scrap action so that it doesn't crash for some reason when
called from a do_action in javascript.

task-183075
2018-06-11 16:56:55 +02:00
Arnold Moyaux aad104621c [IMP] delivery: package code not only in debbug.
It could be usefull for the user to create code that
couldn't be loaded by odoo.

task-30450
2018-06-11 16:33:52 +02:00
Arnold Moyaux 32b18dd07e [FIX] web: correct 'popup blocked' error message.
task-30450
2018-06-11 16:33:52 +02:00
Arnold Moyaux 6892cc8322 [IMP] delivery: handle multiple trackers
Easypost return multiple tracker links for a single
picking. Currently it returns one link per package.

*_get_tracking_link instead of returning a simple string,
it could return a list of list with data
[[tracker number, tracker_puclic_url], ...]
stored as a json dump.

This commit add a check on carrier_tracking_url
in order to check if it has a json format. In this case it
will log a note and will not use the url action.
2018-06-11 16:33:52 +02:00
dut-odoo a19236205a [IMP] sale, stock, website_sale: add easypost in settings
task-id: 30450
2018-06-11 16:33:52 +02:00
Simon Lejeune 17984be82c [REF] barcodes: form view: better error messages 2018-06-11 16:18:18 +02:00
MOENS Alexandre d13fb14f1e [REF] barcodes: pager: warn if a pager isn't present
If a barcode triggering an action on the pager was scanned while a pager
wasn't present in the page (see the workorder tablet view), a traceback
happened.

We display a warning instead.

Task: 1831245
2018-06-11 16:18:18 +02:00
MOENS Alexandre defff5f191 [REF] barcodes: form view: multiples button for a single trigger
This commit allows multiple button to share the same `barcode_trigger`
attribute. Note that it only makes sense if a single button is displayed
at a time.

Task: 1831245
2018-06-11 16:18:18 +02:00
Simon Lejeune 8c524b265a [MERGE] mrp, sale_mrp: produce wizard refactoring
See all components in the produce wizard, not only the tracked ones.
Task 55494
PR #24087
2018-06-11 16:07:49 +02:00
jem-odoo 8b0110df87 [MERGE] sale_timesheet: include expenses in overview
These commit mostly modify the profitability report to
extend it in order to include expense cost of a project.
If analytic entries are created on an analytic account
linked to a project, they will be count as expense
cost for that project.
So, if several project are linked to the same AA, the
same expense cost will appear in all those project
overviews, as they are linked to AA and not project.

This merge also provide test for the reporting view, as
it will probably change in future devs.

Task #49214
Closes #24593
2018-06-11 15:50:13 +02:00
jem-odoo 92b57a5781 [IMP] sale_timesheet: expense in project plan dashboard
On project overview, user can now see the expense
costs of the analytic account linked to the project.
It also displays the reinvoice amount of those costs
(based on their related SO lines), and computed like
the amount to invoice for invoice.

This commit also provides some tests to avoid problem
when modifying the SQL query of profitability report.

Task #49214
2018-06-11 14:52:04 +02:00
jem-odoo 7724bd0c2f [IMP] sale_timesheet: simplify the profitability report SQL query 2018-06-11 14:52:04 +02:00
jem-odoo 23b8b91fcd [FIX] sale_timesheet: exludes expense service SOL in plan project
In the table of the project overview, we don't want to
see sale lines generated from expenses and vendor bills.
2018-06-11 14:52:04 +02:00
Pratima Gupta 3935bdc3de [IMP] mrp: update mrp tests to the new 'Produce' wizard
New test :
- Create a MO with a finish product tracked by SN with a dozen as
quantity
- Click on produce button in order to open the produce produce wizard
The quantity to do is 1 dozen although the tracking is by serial number

Task #55494.
2018-06-11 14:46:53 +02:00
Pratima Gupta 2678eba0be [IMP] mrp: produce wizard improvement.
This commit makes several improvement in the 'Produce' wizard on Manufacturing Orders
such as :

1) In produce wizard, all components will be visible. (Regardless of tracking)
2) Quantity done will be equal to expected consumption.
3) Produce wizard line data filled from an onchange on final product
4) Reserved column is added to 'produce' wizard
5) When production order is done, we hide the column 'reserved'
6) In produce wizard, if consuming products are not available or in too small quantity,
the lines is displayed red

Task #55494.
2018-06-11 14:43:03 +02:00
David 1f30260f85 [FIX] website_form: metadata recording 2018-06-11 13:04:13 +02:00
Ivan Yelizariev 4f9d9d169f [IMP] website: multi-website snippets with the same key
Allow duplicate snippets to have different versions for different websites

This commit closes #24429
2018-06-11 12:45:09 +02:00
Olivier Colson 042e7862be [FIX] account: properly link bank account created via setup wizard with existing journals when choosing to do so
[IMP] account_bank_statement_import: bank account manual configuration wizard: when linking to an existing journal, change its statements source if the journal had an 'undefined' source.
2018-06-11 11:18:57 +02:00
jem-odoo 5e9cd951d6 [IMP] sale_timesheet: changing ordered qty update planned hours on task
When changing the ordered quantity on a Sales order line, the
planned hours of its related task will be updated too.
This is obviously applicable for SO line that have created
a task at SO confirmation.
If the SO is cancel, or put in draft state, updating the ordered
quantity will change the planned hours of the task. This operation
is however prevent on locked SO, since ordered quantity is a
protected field.

Task #1856984
2018-06-11 10:39:24 +02:00
Katherine Zaoral d1d529cbfc [FIX] project: fix warning when archiving still talking about issues, now merged with tasks
Closes #25111 .
2018-06-11 10:35:46 +02:00
Adrian Torres 503b8ed692 [FIX] *: cleanup (un|re)installation hacks
Replace hacks introduced in V11 by the proper solution.
2018-06-11 09:47:34 +02:00
Fabien Pinckaers c0aacce182 [IMP] crm: removed crm.opportunity.report, replacec by crm.lead 2018-06-09 20:53:50 +02:00
Fabien Pinckaers 9690685d65 [IMP] crm: removing object crm.opportunity.report
Use crm.lead instead of a the crm.opportunity.report object for
reporting. This allows to show more fields (e.g. tags_ids). The only
field not accessible in the report is #activities, but there is a
deicated report dedicated to activities.

Improved the default search. Example: when reporting on leads, you want
leads+opps by creation date (and not only leads) as an opportunity has
been a lead created too.
2018-06-09 20:45:09 +02:00
Olivier Colson 27c9705c00 [FIX] test_main_flows: fix tour, to make it work with the new stuff in accounting's dashboard 2018-06-08 22:53:47 +02:00
qdp-odoo 660be186fd [FIX] test_main_flows: let the redbot go green 2018-06-08 20:50:48 +02:00
Olivier Colson b30fed7a7b [IMP] account: facilitate bank account and bank journal config
With this change,
 * some modules are now set to be automatically installed by default
 * the setup bar of accounting has been changed in order to allow more easiliy the configuration of bank accounts/journals (and the step to oversee the opening entry has been removed)
 * the kanban view in the dashboard has been enhanced (mostly for bank journals, but not only)

Was task: 32668
Was PR #23049
2018-06-08 17:48:03 +02:00
Thibault Delavallée c879fb0f00 [IMP] calendar: improve scheduling meeting activities
After feedback from various uses, some improvements are made on the form view
to schedule an activity linked to meeting type

 * renaming the button to be more obvious that the user will be redirected
   to the calendar to schedule the meeting;
 * remove the note field to have a smaller form;

This commit is related to task ID 1819812. Closes #24169.
2018-06-08 17:39:30 +02:00
Thibault Delavallée 6b4ccf3e34 [MERGE] mail, various: make (some) templates bioutifoul
Purpose of this commit is to enhance quality of templates proposed by Odoo
and make them use notification layout when send by emails. Those emails
are cleaner and more up to date compared to other emails.

Main work of this merge is to ease the propagation of setting the
notification layout specification through various layers of mail.thread
post processing and to improve the various templates proposed in several
applications.

Impacted modules in this merge: event and event track, project (including
rating), gamification, product email template.

This merge is linked to task 51122. Closes #24052.
2018-06-08 17:27:25 +02:00
Géry Debongnie 247299b35b [FIX] web: increase timeout for warning in logs
Before this commit, it could happen quite frequently that the runbot
displayed a warning (coming from the JS) when some tests/tours were
executed.  This is the standard warning that some modules are not yet
loaded.  This is not harmful in anyway, but is visible in the runbot
logs.

With this commit, we increase the timeout to 6s.  This is not really a
good sign, hopefully cold starts for building assets will not
increase again in the future.
2018-06-08 16:53:50 +02:00
sed-odoo 22ee6df66b [IMP] fleet: Allow to search vehicles based on assignation logs
Purpose
=======
We can not get the list of vehicles who have been assigned to a driver.

Specification
=============
The user is able to get the list of the vehicles assigned to a specific driver, by searching the driver's name with the "Assigned to" filter.
2018-06-08 16:04:32 +02:00
Christophe Monniez 0e117c873c [REM] packaging: add sassc to the rpm package
Since 565277acbb sassc is used as a
fallback when the python libsass is not available.

With this commit, the saasc package dependency is added to the rpm to
avoid installing libsass with pip.
2018-06-08 15:47:07 +02:00
Pratima Gupta 37ea5dc316 [IMP] product_email_template: make email templates bioutifoul
Purpose of this commit is to enhance quality of templates proposed by Odoo
and make them use notification layout when send by emails. Those emails
are cleaner and more up to date compared to other emails.

Including
  * when sending the template attached to the product, specify the layout
    to use to encapsulate the notification email;

There is a huge ugly demo data of odoo online contained in this product.
After some thinking we choose not to modify it as demo data update will
belong to another task.

This commit is related to task ID 51122 (and PR #24052).
2018-06-08 15:39:18 +02:00