Mario Arias Badila [Fri, 21 Nov 2014 15:20:45 +0000 (09:20 -0600)]
POS is loading all partners, not only customers
Hi,
Adding domain to res.partner model, so POS only loads "customers"
Denis Ledoux [Fri, 21 Nov 2014 14:51:54 +0000 (15:51 +0100)]
[FIX] website_sale: apply reduction code
The line being deleted in this revision looks to have been useful when it was introduced in this commit:
36fc910
As the sale order was updated right away through the update_pricelist method
But since this rev. 22f4c31, the sale order is updated later, and reset the sale_order_code_pricelist_id value in the session right after setting it prevent to apply the pricelist of the promotional code...
Jeremy Kersten [Fri, 21 Nov 2014 14:53:13 +0000 (15:53 +0100)]
[IMP] website_blog: Add menu, form view and tree view to manage tags.
Christophe Simonis [Fri, 21 Nov 2014 14:25:44 +0000 (15:25 +0100)]
[FIX] http.py: log 400 errors
Christophe Simonis [Fri, 21 Nov 2014 14:05:48 +0000 (15:05 +0100)]
[FIX] website_crm: contactus: do not polute lead creation values
Christophe Simonis [Fri, 21 Nov 2014 14:03:12 +0000 (15:03 +0100)]
[FIX] crm: set the oldname of field crm.lead.medium_id
Jeremy Kersten [Fri, 21 Nov 2014 10:58:39 +0000 (11:58 +0100)]
[FIX] web_calendar: improve the commit 787147d. This commit was fixing bug in other module that calendar which was open an event in popup view. Because browse/read by default was unable to read string id. The fix was too restrictif, because calendar need to read/browse string; we cannot cast this id in Int else we loose the virtual part. parseInt('12-
20140512') -> 12.
Jeremy Kersten [Fri, 21 Nov 2014 10:55:00 +0000 (11:55 +0100)]
[FIX] calendar: allow to sort in tree view the starting date (start, start_date, start_datetime) (hack for V8)
Géry Debongnie [Thu, 20 Nov 2014 09:26:13 +0000 (10:26 +0100)]
[FIX] fix autocompletion problems with quick presses
Problem was that when the user types quickly in the search bar and press
enter, the keydown event of the enter key happens before the keypress
event of the last key entered. This means that the autocompletion has
a wrong string. The fix is to move the enter selection detection from
keydown to keyup.
Olivier Dony [Thu, 20 Nov 2014 17:16:31 +0000 (18:16 +0100)]
[FIX] calendar: support non-ascii chars in date/time format
The calendar module generates string values with
a date/time formatted according to the user
language. Those formats may contain non-ascii
characters and are read as unicode strings,
but fed to str{p,t}time, which only accepts
byte strings (in Python 2).
This would cause an exception when loading calendar
notifications for a user using e.g. Chinese with
some CJK unicode chars in the date/time format.
Binjal Desai [Thu, 20 Nov 2014 10:08:39 +0000 (15:38 +0530)]
[FIX] mass_mailing: attachments were not send.
Christophe Simonis [Thu, 20 Nov 2014 15:06:55 +0000 (16:06 +0100)]
[FIX] http.py: invalid request must return a status code 400
Géry Debongnie [Thu, 20 Nov 2014 10:25:49 +0000 (11:25 +0100)]
[FIX] fix wrong filter in opportunity view (crm)
There was two problems:
* it was filtering on the probability of the opportunity, not on the
probability of the stage
* the filters were not prefixed with '&', which means that they gave
weird results when combined in the searchview (in a filter group, filters
are combined with '|', but it breaks when the filters are defined by
an implicit '&')
Christophe Simonis [Thu, 20 Nov 2014 10:37:23 +0000 (11:37 +0100)]
[MERGE] forward port of branch saas-3 up to 6c13c8d
Denis Ledoux [Wed, 19 Nov 2014 18:09:18 +0000 (19:09 +0100)]
[FIX] base: copy access rights on group duplication
Olivier Dony [Wed, 19 Nov 2014 16:49:12 +0000 (17:49 +0100)]
[I18N] Update translations from Launchpad 8.0 branches
Xavier Morel [Wed, 19 Nov 2014 16:07:28 +0000 (17:07 +0100)]
[REM] duplicated package in requirements, sort
Henri-Maxime Ducoulombier [Wed, 19 Nov 2014 15:24:28 +0000 (16:24 +0100)]
[IMP] doc: incorrect value documented
closes #3761
Christophe Simonis [Wed, 19 Nov 2014 14:14:14 +0000 (15:14 +0100)]
[FIX] graph.py: correct Node() creation.
Fixes #3730
Denis Ledoux [Wed, 19 Nov 2014 13:06:48 +0000 (14:06 +0100)]
[MERGE] forward port of branch 7.0 up to 529e920
Denis Ledoux [Wed, 19 Nov 2014 12:24:32 +0000 (13:24 +0100)]
[FIX] mrp: perform location chaining for kit exploded moves
This rev. 7307227 ensured to not (re-)set the state 'confirmed' to exploded moves with a more advanced state (for instance, 'assigned')
Nevertheless, the location chaining is performed on the move confirmation, through the action_confirm method of the stock.move model. Besides, the resulting moves of the _action_explode method had the state 'confirmed' on creation, the 'confirmed' state wasn't set by the method 'action_confirm', meaning that the moves were confirmed without having the location chaining done. Allowing moves to go through the action_confirm method even if the state was 'confirmed' or further triggered the location chaining.
Preventing already confirmed moves to go through the action_confirm method prevented the location chaining, thus.
We now create the resulting moves with the 'draft' state, and then confirm them through the procurement workflow signal 'button_confirm'. Thus, the resulting moves are confirmed by going through the action_confirm method, writing the confirmed state and triggering the location chaining at the same time. We then write the 'assigned' state if necessary.
opw-617235
Olivier Dony [Wed, 19 Nov 2014 11:14:21 +0000 (12:14 +0100)]
[FIX] decimal_precision: avoid refreshing float precisions at each cache invalidation
Changing the decimal precision of float fields is a rare
operation, while cache clearing occurs fairly frequently.
Signaling a full registry change when the decimal precision
is changed (instead of a mere cache change) is therefore
a better trade-off, and more semantically correct as well.
This way we avoid the decimal precision refresh for each
invalidation.
Registry invalidation implies cache invalidation.
Martin Trigaux [Wed, 19 Nov 2014 10:06:40 +0000 (11:06 +0100)]
[FIX] web: force company logo refresh per db
The company_logo is cached and was not refreshed when switching between database, still showing the logo of the company of the previous database
Fixes #2738
Leonardo Pistone [Wed, 19 Nov 2014 10:55:33 +0000 (11:55 +0100)]
[REM] python-stdnum from requirements
It is never used in the code, and causes problems with wheels: related
to pypa/pip#2105
closes #3744
Julien Legros [Wed, 19 Nov 2014 10:36:04 +0000 (11:36 +0100)]
[FIX] website_sale: don't carry over tx details on SO duplication
opw-617319
Antony Lesuisse [Tue, 18 Nov 2014 22:27:48 +0000 (23:27 +0100)]
[FIX] windows ctrl-c from cmd as a non admin
return False when calling is_running_as_nt_service from a non adminstrator
account.
Antony Lesuisse [Tue, 18 Nov 2014 22:04:21 +0000 (23:04 +0100)]
[FIX] server.py traceback on ctrl-c from windows cmd
Define a shim signal.SIGHUP on windows to avoid an ifdef in the threaded server
loop.
Frederic van der Essen [Tue, 18 Nov 2014 18:06:21 +0000 (19:06 +0100)]
[FIX] requirements.txt: add info about optional python requirements used for the point of sale receipt printing
Frederic van der Essen [Tue, 18 Nov 2014 18:03:10 +0000 (19:03 +0100)]
[FIX] hw_escpos: use logger instead of prints to avoid corrupting the odoo.py command line interface.
Martin Trigaux [Tue, 18 Nov 2014 14:09:13 +0000 (15:09 +0100)]
[FIX] project: access rights and followers
For privacy_visibility 'followers' or 'portal', the user should be follower of the project (not the task).
Remove public access to portal task
Fixes #2372
If no project on the task (or other rule), an employee (not a portal) can access if is follower of the task.
Follower rule is not enough as a user creating a rule will subscribe to the rule but to subscribe to record, the user should have access to it in the first place.
To make sure the snake does not bit its tail, fallback to give access on task where the user is reponsible (user_id = user.id).
Fixes #139
Adapted the tests to the new behaviour (removed not relevant and added some on creation)
Martin Trigaux [Tue, 18 Nov 2014 14:21:59 +0000 (15:21 +0100)]
[IMP] point_of_sale: make the sequence field configurable
Frederic van der Essen [Tue, 18 Nov 2014 17:03:53 +0000 (18:03 +0100)]
[FIX] point_of_sale: fix point of sale sequence declaration, github issue #3218
Christophe Simonis [Tue, 18 Nov 2014 16:42:13 +0000 (17:42 +0100)]
[FIX] website_forum: load js files in the right order.
Josse Colpaert [Tue, 18 Nov 2014 10:38:58 +0000 (11:38 +0100)]
[FIX] Avoid access error on XML id in browse when choosing picking type for manual purchase order. As they are ordered by sequence, just take the first you can find.
Denis Ledoux [Tue, 18 Nov 2014 15:27:16 +0000 (16:27 +0100)]
[FIX] account: do not duplicate analytic lines on analytic journal duplicate
Jeremy Kersten [Tue, 18 Nov 2014 15:20:58 +0000 (16:20 +0100)]
[FIX] website_forum:
Remove useless document ready
Add select2 to frontend to allow public user to use tags
Frederic van der Essen [Tue, 18 Nov 2014 14:38:07 +0000 (15:38 +0100)]
[FIX] point_of_sale: remove a confusing partial implementation of UoS
Jeremy Kersten [Tue, 18 Nov 2014 13:31:36 +0000 (14:31 +0100)]
[FIX] website_forum:
Use if_dom_contains to check if we need to load js
Fix bug where _tag_to_write_vals was called like old API but model converter was new api
Move IsKarmaValid and Load CKE only in website_forum context
xmo-odoo [Tue, 18 Nov 2014 12:53:20 +0000 (13:53 +0100)]
[IMP] doc: try to clarify what $as is in qweb doc
Stéphane Bidoul [Wed, 15 Oct 2014 19:38:29 +0000 (21:38 +0200)]
[IMP] account_payment: remove dead voucher code and extension hook
Since bank statement do not use vouchers anymore in 8.0,
it's not necessary to create the voucher anymore.
Additionally, I add an extension point to let modules adapt
the statement line.
qdp-odoo [Tue, 18 Nov 2014 12:26:34 +0000 (13:26 +0100)]
[FIX] account_payment: fixed the view of payment order to display the amount of transactions
Simon Lejeune [Mon, 17 Nov 2014 22:09:59 +0000 (23:09 +0100)]
[ADD] account_budget: theoretical amount: tests
Simon Lejeune [Wed, 22 Oct 2014 15:50:02 +0000 (17:50 +0200)]
[FIX] account_budget: theoretical amount: ignore future and use datetime
Denis Ledoux [Tue, 18 Nov 2014 10:40:55 +0000 (11:40 +0100)]
[FIX] website_sale: product website description must be translatable
Jeremy Kersten [Tue, 18 Nov 2014 10:25:31 +0000 (11:25 +0100)]
[FIX] website_forum: use common method to compute tags for orm
Tymoteusz Motylewski [Tue, 18 Nov 2014 09:45:25 +0000 (10:45 +0100)]
[FIX] doc: incorrect class access in new api guide
When creating a class with the new API, we should use models.Model
instead of just Model.
closes #3713
Xavier Morel [Tue, 18 Nov 2014 10:18:14 +0000 (11:18 +0100)]
[FIX] doc: double period in footer
Xavier Morel [Mon, 17 Nov 2014 16:40:38 +0000 (17:40 +0100)]
[FIX] doc: latex building
* add latex support for exercise admonition
* latex freezes/crashes on {HEAVY WIDE-HEADED RIGHTWARDS ARROW} so
replace them by more manual arrows
* add some preamble configuration, may not even be necessary
* generate WS setup code only in HTML output. WS doc in latex still
isn't great as it displays all 4 languages one after the other,
ideally they should be tagged or something, so only one language at a
time is generated in non-HTML outputs
Jeremy Kersten [Mon, 17 Nov 2014 15:04:57 +0000 (16:04 +0100)]
[FIX] website_forum: add fake tour for people waiting the tour. To remove in Without it, localstorage loop to search this unexisting tour after the install...
Jeremy Kersten [Fri, 14 Nov 2014 18:14:12 +0000 (19:14 +0100)]
[FIX] website_forum - replace texttext by select2 for the tags fields
Xavier Morel [Mon, 17 Nov 2014 15:25:34 +0000 (16:25 +0100)]
[IMP] doc: improve index, WS page
Xavier Morel [Mon, 17 Nov 2014 15:20:43 +0000 (16:20 +0100)]
[IMP] doc: have ws page take whole page width
Doc pages used container() which is width-limited, works acceptably for
single-column content but WS page takes 2 columns with code, having as
much space as possible is a much better idea.
Mayhaps it should even use lg-column(2) instead of md-column(3)?
Xavier Morel [Mon, 17 Nov 2014 15:17:07 +0000 (16:17 +0100)]
[IMP] doc: wording of method-calling introduction
Xavier Morel [Mon, 17 Nov 2014 15:10:06 +0000 (16:10 +0100)]
[IMP] doc: rename WS page, lift to top-level
Raphael Collet [Mon, 17 Nov 2014 14:39:14 +0000 (15:39 +0100)]
[FIX] tests: make self.assertRaises() return the expected object
Xavier Morel [Mon, 17 Nov 2014 14:18:14 +0000 (15:18 +0100)]
[IMP] doc: try to make some bits of the porting guide less confusing
Xavier Morel [Mon, 17 Nov 2014 14:14:22 +0000 (15:14 +0100)]
[IMP] doc: move old API sections to orm toplevel
also move porting checklist/doc/thing to bottom of document, it's mostly
for seasoned or internal developers
Xavier Morel [Mon, 17 Nov 2014 14:10:34 +0000 (15:10 +0100)]
[IMP] doc: more indexy index
Raphael Collet [Thu, 13 Nov 2014 16:40:41 +0000 (17:40 +0100)]
[FIX] tests: make sure that a failed tests does not leave the environment dirty
When a failure occurs, or when exiting an assertRaises(), the environment
should not contain fields to recompute.
Xavier Morel [Mon, 17 Nov 2014 13:07:36 +0000 (14:07 +0100)]
[IMP] doc: indexify index
* opt-in toc navification
* unhide index toctree, it's now back to a list of documents
* remove text thing
Raphael Collet [Mon, 17 Nov 2014 10:35:06 +0000 (11:35 +0100)]
[FIX] ir_model: on a custom model, _rec_name should be 'x_name' if it exists
hiekmann [Mon, 17 Nov 2014 09:22:23 +0000 (09:22 +0000)]
[fix] portal: typo in description
closes #3685
Josse Colpaert [Mon, 17 Nov 2014 08:44:10 +0000 (09:44 +0100)]
Revert "[IMP] Remove unnecessary refresh statements because of new api"
This reverts commit
b213438176b16e96686d94063a3cdf6dc5c49618.
Josse Colpaert [Thu, 13 Nov 2014 16:48:21 +0000 (17:48 +0100)]
[IMP] Remove unnecessary refresh statements because of new api
Denis Ledoux [Fri, 14 Nov 2014 17:02:02 +0000 (18:02 +0100)]
[MERGE] forward port of branch saas-3 up to c571413
Denis Ledoux [Fri, 14 Nov 2014 16:59:00 +0000 (17:59 +0100)]
[MERGE] forward port of branch 7.0 up to 922a52d
Denis Ledoux [Fri, 14 Nov 2014 16:57:10 +0000 (17:57 +0100)]
[FIX] web: date autocompletion should not harcode 'date'
But should use date or datetime according to the widget type
This fix is related to
69d60465ee67969d72210a61a9e23204d037378a
Martin Trigaux [Fri, 14 Nov 2014 15:51:13 +0000 (16:51 +0100)]
[FIX] purchase: keep PO currency on picking
The delivery of a purchase order was not keeping the currency and cost price
from the purchase order for the reception. This was problematic for orders where
the invoice was generated from the picking (Invoicing Control: Based on incoming
shipments). The currency of the purchase order was kept while the cost was the
one in the company's currency.
It's better to keep the currency of the purchase order to make the invoice as
it's usually the one expected (and not convert everything to the currency of the
company). opw 615555
Denis Ledoux [Fri, 14 Nov 2014 15:58:24 +0000 (16:58 +0100)]
[MERGE] forward port of branch saas-3 up to 7ab4137
Jeremy Kersten [Fri, 14 Nov 2014 15:19:33 +0000 (16:19 +0100)]
[FIX] layout - use company name for attribut alt of company logo
Denis Ledoux [Fri, 14 Nov 2014 14:59:33 +0000 (15:59 +0100)]
[MERGE] forward port of branch 7.0 up to da15c9d
Denis Ledoux [Fri, 14 Nov 2014 14:49:39 +0000 (15:49 +0100)]
[FIX] web: do not set the one2many dirty on field validation
This rev.
06104ba553702b16878d52c5b8ab089355216a5e
Added the dirty flag on the o2m field when the editor of the editable list was enabled (meaning that the editable list has been altered)) because the dirty flag was not set correctly by the one2many during the edition, at the time.
It looks like this is now the case
Besides, as now, we valid all the editable list of the form, wether or not the editable list was altered, we must not set the o2m as dirty anymore.
qdp-odoo [Fri, 14 Nov 2014 14:45:13 +0000 (15:45 +0100)]
[FIX] account: allow to use quantity in taxes computated with python code
ged-odoo [Fri, 14 Nov 2014 13:38:15 +0000 (14:38 +0100)]
[IMP] add link to write method in documentation
Denis Ledoux [Fri, 14 Nov 2014 13:14:58 +0000 (14:14 +0100)]
[FIX] point_of_sale: missing multi-company rule
Denis Ledoux [Fri, 14 Nov 2014 12:40:02 +0000 (13:40 +0100)]
[FIX] product: more accurate name_search
First, name_search searches on default_code, then, if the limit is not reached, it searches on the product name
The results found from the default code search must be removed from the search domain when doing the search on the product name, to avoid having results already found by the search on the default_code
opw-618015
Martin Trigaux [Fri, 14 Nov 2014 10:10:15 +0000 (11:10 +0100)]
[FIX] stock: multicompany reception
When a picking is confirmed, the generated account.move(.line) should take the
company, accounts, journals and period with the same company as the picking,
not the one of the current user.
This was problematic if a user in a company confirm a picking linked to
a purchase order done in another company.
For real time valuations, the generated accounting entries were mixing both
companies.
Fixes #3466
Martin Trigaux [Thu, 13 Nov 2014 17:01:25 +0000 (18:01 +0100)]
[IMP] purchase: error message linked to product, not company
Jeremy Kersten [Fri, 14 Nov 2014 10:13:38 +0000 (11:13 +0100)]
[FIX] layout: add alt on logo for seo
Josse Colpaert [Thu, 13 Nov 2014 14:24:31 +0000 (15:24 +0100)]
[IMP] Pass the invoice type from sale to picking for the sale_journal module that is installable again
Samus CTO [Thu, 13 Nov 2014 15:23:08 +0000 (16:23 +0100)]
[IMP] Speedup test account_assert_test.xml in account
Frederic van der Essen [Thu, 13 Nov 2014 15:07:52 +0000 (16:07 +0100)]
[FIX] point_of_sale: rounding error in discount computing + removing duplicated code
Martin Trigaux [Thu, 13 Nov 2014 15:02:11 +0000 (16:02 +0100)]
[FIX] fleet: avoid function field computation order issues
The name of a vehicle is function field.
The field odometer on a vehicle has a a setter that creates an odometer.
The name of an odometer is a function field that uses the name of the vehicle.
If a vehicle is created with a value in odometer field, the odometer is created before the name is computed so the concatanation would fail.
Fixes #3468
Raphael Collet [Thu, 6 Nov 2014 14:03:00 +0000 (15:03 +0100)]
[IMP] models: improve performance of _setup_fields()
There was an issue in _setup_fields(): the method invokes _inherits_reload(),
which recomputes inherited fields, and invokes itself recursively on children
models. This may be problematic if the children models have already been set
up.
This optimization avoids recursive calls of method _inherits_reload(). In
_setup_fields(), first all parent models are set up, then their fields are
inspected to determine inherited fields, and their setup is done. This scheme
guarantees that inherited fields are computed once per model.
Raphael Collet [Thu, 13 Nov 2014 09:06:30 +0000 (10:06 +0100)]
[FIX] models: simplify conditions that seem to lead to missing fields
Raphael Collet [Thu, 6 Nov 2014 14:48:20 +0000 (15:48 +0100)]
[IMP] models: in _init_manual_fields(), create fields instead of columns
Note that serialized fields are ignored; they are no longer supported, anyway.
Raphael Collet [Thu, 6 Nov 2014 14:16:02 +0000 (15:16 +0100)]
[FIX] ir_model: always setup models before calling _auto_init()
Raphael Collet [Thu, 13 Nov 2014 11:42:18 +0000 (12:42 +0100)]
[FIX] account_voucher: getting default invoice crashes
Fixes #3524.
Jeremy Kersten [Thu, 13 Nov 2014 08:21:46 +0000 (09:21 +0100)]
[FIX] website_sale: browse category to slugify. Because slug of an id will generate a tb 'need more than 1 value to unpack'
Jeremy Kersten [Wed, 12 Nov 2014 16:30:45 +0000 (17:30 +0100)]
[FIX] mail_group: use default picture disc if not mimetype has been defined (else tb)
Raphael Collet [Thu, 13 Nov 2014 11:30:26 +0000 (12:30 +0100)]
[FIX] addons: incorrect new-api invocation of method write() with context
This fixes #3411.
Josse Colpaert [Thu, 13 Nov 2014 11:24:01 +0000 (12:24 +0100)]
Merge pull request #3601 from odoo-dev/8.0-wmsstagingx-jco
WMS STAGING X
- scheduler cursor and company_id
- digits in transfer wizard
- delivery putting carrier on picking from sale and correctly invoicing it
- inventory import: imported lines should not be deleted
- average price correction for twice same product / variants
- recreate picking from sale order
- manual purchase order: picking type by default should depend on user's company
Frederic van der Essen [Thu, 13 Nov 2014 11:03:11 +0000 (12:03 +0100)]
[FIX] point_of_sale: I see a chrome receipt and I want it painted black ;)
Josse Colpaert [Thu, 13 Nov 2014 10:49:27 +0000 (11:49 +0100)]
[IMP] Update comments for inventory from import
Josse Colpaert [Fri, 24 Oct 2014 15:50:31 +0000 (17:50 +0200)]
[IMP] When an inventory has lines already, don't delete them, that way we can import them
[IMP] Put the theoretical quantity when importing an inventory
Josse Colpaert [Tue, 4 Nov 2014 16:28:43 +0000 (17:28 +0100)]
[FIX] super of scheduler / delivery method and phantom boms / average price
[FIX] super of scheduler should have same params + use_new_cursor should be passed to procure orderpoint confirm
[IMP] Make sure the delivery works when doing phantom boms
[FIX] This should update the average price properly when having multiple moves with the same product
[FIX] Average price should take into account the quantities of all variants
[FIX] Make sure purchase picking type in other company works
[IMP] Views of quants and destination locations of moves
Josse Colpaert [Thu, 6 Nov 2014 10:40:04 +0000 (11:40 +0100)]
[FIX] Method should pass the correct objects for adding the line for the delivery method when invoicing based on shipments
Josse Colpaert [Wed, 5 Nov 2014 10:45:04 +0000 (11:45 +0100)]
[FIX] #3153 Digits in wizard should be those of moves,... / Recreate delivery order from sale / Delivery method on delivery order
[IMP] Provide better purchase order picking type
[IMP] Possibly a better product uos handling in the sale order line
[FIX] Recreate of delivery order when sales order in shipping exception
[FIX] Delivery method should be passed to delivery order
grzegorz-openglobe [Wed, 24 Sep 2014 09:35:10 +0000 (11:35 +0200)]
[IMP] l10n_pl: backport of fd86b7a to 8.0
[IMP] l10n_pl: some corrections in Polish CoA
PLN as default currency
Many improvements in taxes and fiscal positions
Fixes #825
Martin Trigaux [Thu, 13 Nov 2014 10:26:44 +0000 (11:26 +0100)]
[FIX] hr_timehseet: restrict access right
Fix error while moving it at ca209eb