Commit Graph
112279 Commits
Author SHA1 Message Date
Fabien Pinckaers a06f8f6b45 [FIX] mrp: consistency in order of BoM lines 2017-09-10 20:42:16 +02:00
Fabien Pinckaers 3c9cb6cfbe [IMP] stock: kanban view for stock.move.line (mobile UI) 2017-09-10 20:21:11 +02:00
Fabien Pinckaers ccfc9e68e7 [IMP] stock: improved list view for stock.ove.line (reserved means nothing for done picking 2017-09-10 20:02:32 +02:00
Fabien Pinckaers 152a7aea17 [IMP] stock: better search view from stock.move.line 2017-09-10 20:00:35 +02:00
amoyaux 59ba6940c9 [REF] stock: remove order point only on scheduler
This functionality was not well know and not necessary
from our point of view thus we chosse to remove it.
2017-09-08 17:08:10 +02:00
amoyaux c1dace134d [IMP] sale_stock: raise multiple error at the same time
When a user confirm a sale order, he will have one error at a time.
This is not user friendly since he has to correct the current error
and confirm the sale order again in order to get the next mistake.

This commit runs all procurement and catch raised error in order
to display them all at once
2017-09-08 17:08:08 +02:00
amoyaux f50d732373 [IMP] stock, purchase: improve usererror messages.
This commit add some steps in description in order to
correct the mistake.
2017-09-08 17:08:07 +02:00
amoyaux c914df5a36 [IMP] stock,mrp,purchase: split _run method and move it to rules
Previously mrp, stock and purchase used _run methon on procurement
group and start with a if checking for the action type. This commit
instead launch a specific method depending the rule's action's type

Also _run method and their submethod used in procurement group
was always called with a rule. Thus we choose to move this method
on the rule object himself.
2017-09-08 17:08:06 +02:00
Fabien Pinckaers 283242dbea [REF] procurement: remove
Since previous commit 70b67d1 procurements order are
not needed anymore see previous commit for more explanations.
2017-09-08 17:08:06 +02:00
Fabien Pinckaers 0e4f3bb959 [IMP] stock: remove procurement orders to fufill immediately
This removes the procurement.order model. To fufill their needs SO, PO, MO and
stock moves now call the _run method of the relevant procurement.group.

This mecanism is now only used for stockable product, tasks now uses their own
independent mecanism.

The _run method will check all the applicable rules and create directly the
needed model to fufill the need.

The modules stock, purchase, mrp, extends the _run method to implement their
specific strategy relevant for the rule type they define.

If an exception happens the message will be logged as a mail messsage on the
source model, for example, if a sales order cannot be fufilled the salesperson
will now see directly the reason.

OLD commit messages:
[WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP
fixup! [WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP
[IMP] Basic tests
[FIX] test not necessary anymore
[FIX] remove unnecessary print statement
[FIX] unnecessary test + why passing warehouse worked before?
[IMP] purchase: one move by purchase order line
[FIX] purchase: correct inventory tests and pass move_dest_ids among procurements
[FIX] because of bad cherry-pick merge
[IMP] make mrp pass by adding move_dest_ids there too
[IMP] tests of sale_mrp, no need for cancelpropagation then
[IMP] better to consistently use recordsets also for one2many
[FIX] purchase_requisition
[FIX] Exceptions should trigger errors, which should be caught in the tests
[FIX] sale_mrp: remove usage of procurement.order and use sale order name instead of sol
[FIX] stock_dropshipping: add sale_line_id on purchase_line_id
[FIX] Remove pdb
[IMP] add stock_dropshipping files
[IMP] stock: search carrier through sale line instead of procurement group
[IMP] add procrule test and preision needed when updating sol
[FIX] sale_order_dates + [IMP] procurement exceptions by scheduler
[FIX] No need to return task
[IMP] move file as name changes and add corrections
[FIX] Continue Run Schedulers wizard fix
[FIX] name issues of takss
[FIX] updating sale order line, but there is still a problem with the recompute
2017-09-08 17:08:05 +02:00
Cedric Snauwaert ad2dc1e7cd [FIX] account: settings, selection of coa should be visible iff there is no accounting entries defined 2017-09-08 15:29:38 +02:00
qdp-odoo 97070bfcfa [IMP] account: add partner_id in the opening entry form view.
Just in case users want to split the initial balance on receivable/payable accounts by partner
2017-09-08 15:22:27 +02:00
Raphael Collet d7190a3fd0 [IMP] api: reindex the record cache to improve cache hit
The record cache is indexed by `(field, record_id, key)`, where `key` depends
on the environment.  The key is either `(cr, uid, context)` or `(cr, uid)`,
depending on whether the field's value is context-dependent.  As most fields
are not context-dependent, this should avoid some cache prefetching when
swiching context.
2017-09-08 13:21:00 +02:00
Raphael Collet 32a58c0db3 [REF] api: wrap the record cache implementation into a class
This makes the rest of the ORM independent from the cache's implementation, and
rely on a well-defined API instead.
2017-09-08 13:21:00 +02:00
Raphael Collet 64e945aa44 [REF] models: make the API of RecordCache more consistent
Make `RecordCache` work on a single record only, and implement a mapping from
field names (only) to values.

Also add explicit methods on `RecordCache` to wrap special behavior in cache,
and simplify all special values as a wrapper for a getter function.

The record cache may contain regular and special values.  Modify `RecordCache`
so that only methods ending with `_value` check for regular values.  The
dictionary methods considers both regular and special values as equivalent.

    name in record._cache               # test if cache has a value
    iter(record._cache)                 # iterate on values
    record._cache[name]                 # get value
    record._cache.get(name)             # get value or default

    record._cache.has_value(name)       # test if cache has a regular value
    record._cache.get_value(name)       # get regular value or default
2017-09-08 13:21:00 +02:00
Yannick Tivisse 736e850a8e [FIX] mass_mailing: Use werzeug.urls instead of urlparse
werkzeug.urls is used instead of urlparse since https://github.com/odoo/odoo/commit/01e35141479b8dfc4a390518f89fc52e7cec5396#diff-f72572eec7ff7bbeca23ba84eda9fc38L35

Error introduced by forwardport https://github.com/odoo/odoo/commit/ba294a397e6ee3eb7dd0153f0726a880f6b77459
2017-09-08 11:51:28 +02:00
Rohan Patel 7c1e1e5afc [IMP] project: limit task priority to 0 or 1
Because, you know, priority is more about shared favorite than priority.
I love using shared favorites and not being able to prioritize my tasks.
2017-09-08 10:15:08 +02:00
Thibault Delavallée 3ce680ac19 [FIX] crm, hr_recruitment: better compute default values for calendar event
* fix issue with ref not using module as xml id left part;
 * improve computation of applicant_id / res_model + res_id in hr_recruitment;
2017-09-08 10:14:23 +02:00
Ravi Gadhia 44a3c72e0f [IMP] mail: store composer when switching channels 2017-09-08 08:44:04 +02:00
Joren Van Onder 168ca86592 [IMP] stock: let the user know what product needs a lot/serial number 2017-09-07 19:43:20 -07:00
Hetashree Chauhan 6bcc86497d [IMP] mrp: reposition working_state toggle on workcenter kanban cards
Move it to the bottom right of the card.
2017-09-07 19:43:20 -07:00
Hetashree Chauhan 0237200d92 [IMP] mrp: uppercase button text on workcenter kanban cards 2017-09-07 19:43:20 -07:00
Joren Van Onder 9d64002b58 [IMP] stock: check serial/lot numbers before backorder wizard
To avoid the error asking to set serial/lot numbers popping up after
the user clicks 'Create backorder'.
2017-09-07 19:43:16 -07:00
Hetashree Chauhan c699125708 [IMP] stock: add help on show_operations 2017-09-07 19:05:54 -07:00
Thibault Delavallée 7371b550f1 [FIX] sale_payment: sudo tx creation as anonymous users may access it 2017-09-07 18:25:35 +02:00
Thibault Delavallée 010960d5e8 [FIX] sale_payment, website_(quote/sale): fix method typo
sale_payment method to check or create a new transaction when paying
a sale order should be named _check_or_create_sale_tx and kept private
like account_payment one. Both versions exists. This commit fixes
the typo.
2017-09-07 18:25:35 +02:00
Thibault Delavallée fa0ccfdb62 [FIX] sale: get Invoice Orders contextual action back
Commit 55549f1e61 changed the way bindings between action and
contextual menu entries are generated. However a typo was introduced
linking Invoice Orders to sale order lines instead of sale orders.
2017-09-07 18:25:35 +02:00
Thibault Delavallée 57cba85c0d [IMP] calendar: add test for meeting activities
Those tests are not a complete flow test but at last it tests that
activities and calendar events are correctly created / unlinked.
2017-09-07 17:55:58 +02:00
Akash Bhavsar 9568b1525b [IMP] mail, calendar: integrate meeting activities with calendar
This commit improves the use of mail activities by allowing their
integration with the calendar. Activity types now have a category
field that can be used to trigger some specific behavior. First
specific behavior is to have activity types of meeting category.
Creating activities of this type trigger a jump to the calendar to
schedule the meeting. Meeting activities and calender events are
linked to be able to easily navigate through the document, its activities
and its meetings.

Configuration is done using a category on activity types instead of some
hardcoded "meeting" activity to avoid issues with master data and to be
able to choose which activity type should trigger this behavior.
2017-09-07 17:55:57 +02:00
Akash Bhavsar be23a75c0e [IMP] calendar: add generic res_id and res_model_id to link documents and events
Linking calendar.event to documents is a good idea to allow searching and
filtering meetings. It also allow to have a link to the document from a
meeting and ease navigation.

There are currently some specific links (opportunity_id for crm.lead and
applicant_id for hr.applicant) but this commit allows some generic
document linking through a res_model_id / res_id fields pair.
2017-09-07 17:55:57 +02:00
Thibault Delavallée fc4251fef9 [FIX] calendar: avoid recomputing fields at unlink
As unlinking calendar events leads to separate flows depending on the
event being recurrent some fields are recomputed in cache even if records
have already been deleted. This leads to issues when computing recurrence
and accessing some event data. Let us therefore avoid recomputing fields
when unlinking events.
2017-09-07 17:54:02 +02:00
Akash Bhavsar 0ff5acee96 [FIX] web: allow default value for calendar quick create
* fix typo, widged is actually widget;
 * support name coming from context for calendar event quick create;

Support of context could be made generic in quick create mechanism but
in the meantime this fix is considered as sufficient for the use case
we have.
2017-09-07 17:53:50 +02:00
stefanorigano af130256e3 [REF] web, mail: review silver colors
This is also meant to solve a bug in firefox: the scrollbar was the
same color as the background by bad luck.

+ Adapt kanban view borders
2017-09-07 16:36:29 +02:00
stefanorigano 9ec47d3735 [REF] web: set better alignments in top menu 2017-09-07 16:35:41 +02:00
Sanjay Jamod 35cdf9076f [IMP] web: improved date field usability
- datepicker doesn't default to current date by default
- date string in the input is now selected when clicking the field
- adapted the existing tests to the new changes
2017-09-07 13:43:01 +02:00
fwi-odoo ef6074beb6 [FIX] web: fix x2m tests
When a x2m field is modified, the 'save' rpc doesn't send 'False' as second
argument of the special command that manipulate the set of records.
From now on, the virtual id of the record is sent to the server as second
argument. This commit fixes the tests making the assumption that 'False'
was sent.
2017-09-07 11:25:30 +02:00
Joren Van Onder d3617fd852 [IMP] mrp: warn the user when not consuming all materials on an MO
Pops up a warning dialog similar to stock.immediate.transfer.
2017-09-06 21:19:59 -07:00
Fabien Pinckaers 32f4888cce [IMP] mail: no default text for activity types. Avoid bug when changing activity 2017-09-06 21:40:26 +02:00
Christophe Simonis b05e838099 [MERGE] forward port branch saas-17 up to 9dff6516e4 2017-09-06 19:20:29 +02:00
Christophe Simonis 9dff6516e4 [FIX] point_of_sale: avoid storing undefined in localstorage 2017-09-06 19:03:13 +02:00
Christophe Simonis 7580bfa49d [FIX] point_of_sale: stupid typo introduced by previous forward-port 2017-09-06 18:09:23 +02:00
stefanorigano ef64fbba8f [REF] web: remove margin-left for kanban columns' quick-add 2017-09-06 17:55:49 +02:00
stefanorigano 2ef5db7f90 [REF] web: review kanban records' title LESS
- Force vertical margin to 0 in case the class is added to elements
  that comes with a default margin (eg. titles tags)

- Move title & subtitle rules at root level
2017-09-06 17:55:49 +02:00
stefanorigano 9e69958099 [REF] web: review graphs layout 2017-09-06 17:55:49 +02:00
qsm-odoo 9380169c74 [FIX] mail: allow identifying the chatter in creation mode
Before this commit, the chatter was rendered as an empty <div/> without
any class while in creation mode. This <div/> was then placed inside
the .o_form_view_bg element by mistake, as it did not match the
'.oe_chatter' selector.
2017-09-06 17:52:24 +02:00
qsm-odoo cf4f357647 [REF] web: review form view layout
The goal of this review is to have a layout which is correct to
implement the enterprise side-chatter.

This also removes/fixes deprecated community rules and xml templates.
2017-09-06 17:52:24 +02:00
Christophe Simonis d5382abeaa [MERGE] forward port branch saas-17 up to b8dd34fcbb 2017-09-06 17:40:59 +02:00
Laurent Smet c75fe95dfc [IMP] l10n_nl: add missing stuff for the Dutch localization
- Add new tags to have a more detailed P&L with sub-categories.
    - Add Standard Business Reporting (SBR) codes and link them to l10n_nl coa.
    - Add/delete some accounts to the l10n_nl coa.

    see task: https://www.odoo.com/web#id=31825&view_type=form&model=project.task&action=333&active_id=967&menu_id=4720

    Was PR #18636
2017-09-06 16:38:32 +02:00
Raphael Collet 81192d66d9 [ADD] test_performance: check the performance of CRUD operations 2017-09-06 16:05:10 +02:00
Raphael Collet 68fb4b95b4 [FIX] odoo.modules.loading: environment is reset while installing a database 2017-09-06 16:05:10 +02:00