Commit Graph
108372 Commits
Author SHA1 Message Date
Hiral Bhavsar 668b730cef [IMP] point_of_sale: pricelist access rights
Pos user can read pricelists and Pos manager
can create/edit/unlink pricelists.
2017-03-17 11:00:33 +01:00
Hiral Bhavsar bb9ca4705e [IMP] point_of_sale: menu reorganization
This commit add some configuration menus to
avoid switching app to configure the POS.

It also add a new 'Catalog' menu to display
product, variants, and pricelists. Some labels
were renamed too.

The new menu structure looks like

Dashboard
Orders
Catalog
- Products
- Product Variants (if set)
- Pricelists (if set, only editable by pos managers)
- Loyalty Programs
Reporting
Configuration
- Settings
- Point of Sale
  - Point of Sale
  - Floor Plans
  - Order Printers
  - Barcode Nomenclatures
  - Payment Methods
  - Mercury Configuration
- Products
  - Attributes
  - Attribute Values
  - PoS Categories
  - Internal Categories
2017-03-17 11:00:07 +01:00
Pratima Gupta 2560feec04 [REM] stock: latest inventories and moves report
The functionaility is available through a filter on the inventory
adjustment view or through the stock moves of a product.
2017-03-16 17:53:28 +01:00
Haresh Shyara 02a76becf7 [IMP] stock_account: remove security group inventory valuation
It will remove the stock setting, the group itself and remove it where
it is used in the views.  The perpetual valuation setting is only on the
internal category which is already "deeper" in the system.

It is also removed for the update price link on the product form
in case of perpetual valuation and we changed the label to Update Cost
instead of update standard/average cost.
2017-03-16 17:34:25 +01:00
Yannick Tivisse 14c56188d1 [IMP] all: Remove error message translation in _sql_constraints
This is automatically taken into account by the translation mechanism. Thus it is useless to make it a translatable label with _('')
2017-03-16 15:26:41 +01:00
Dhaval Panchal 455a420a08 [IMP] base: add constraints when you try to set rounding factor 0(zero) in currency 2017-03-16 15:15:37 +01:00
Siddharth Gajjar ebeaefea5d [IMP] account: rename/remove taxes action name
Purpose
=======

Confusing string given in tax action. same string for normal entries and posted entries.

Specification
=============

Remove unwanted action (Unposted) and rename the remaining ones.
2017-03-16 14:58:41 +01:00
fka-odoo a5d96f01ac [IMP] base: Make currency rate update easier for user
Purpose
=======

Setting a currency rate is not user friendly. I struggle to find my way. Should be obvious in currency form

Specification
=============

- Accounting > configuration > currencies > there should be a default fiter displaying only active currencies
- Remove "View Rates" action button
- Add one stat button "Rates" which open the currency rate list view,  also allow to create new currency rate(here do not open form view just editable=bottom in list)
2017-03-16 14:23:55 +01:00
Jigar Patel 91b07d5092 [IMP] web_kanban,*: Change the More Call To Action by a 3dots icon to improve readability 2017-03-16 11:40:30 +01:00
Haresh Shyara 183aa1591d [IMP] maintenance: added duration to maintenance request in calendar view
Use case when it happens:
* Create a maintenance request
* Schedule a date with a duration greater than 1 hour
* Switch to calendar view
* The maintenance request stop time is equal to start time plus 1 hour
and the duration is equal to 1hour.

The calendar view doesn't correctly display the duration and stop date because
the duration field was not passed to the xml view.

This commit pass the duration to the calendar view in the xml and corrects
the help text of the duration field.
2017-03-16 11:14:51 +01:00
Hareshkumar Shyara fc73645002 [IMP] crm: rename priority field of lead to priority instead of rating 2017-03-15 15:39:27 +01:00
Richard Mathot cdd839d29c [FIX] lunch: display most recent line on top
Because when I want to edit my order of the day, I do want to see the
last order I made on top of the list.
2017-03-15 11:20:03 +01:00
Yannick Tivisse d0fbe51aa0 [IMP] hr_holidays: Clarify the value of manager_id
Currently the manager fields have this meaning:

 * manager_id: employee that approved the leave first;
 * manager_id2: employee that approved the leave secondly;

It makes no sense. Furthermore, on the Leaves Dashboard, when you group
by Manager, you group by first approver, which is also a nonsense.

This commit improves the behavior

 * rename manager_id and manager_id2 into first_approver_id and
   second_approver_id in order to understand their meaning
 * add a stored related field manager_id, readonly to avoid modifications
   on the employee
 * modify the views to only display the real employee manager, the other
   values are not valuable on the views
 * in code regularly a manager variable is used but is actually the
   current employee; a renaming is then applied
2017-03-14 15:25:16 +01:00
Thibault Delavallée 8ef89c317e [LINT] hr_holidays: remove unused import and unnecessary line breaks 2017-03-14 15:25:16 +01:00
Pierre Masereel 0558d1fb39 [IMP] delivery,product,sale_stock,stock: split packaging views
As the product.packaging model is used for two different business cases,
the views shown when the model is used for product packaging must only
contains a product_id, barcode, and qty because and when it's used for
delivery packages we must show the carrier, barcode, size and wheight.

So for usability purpose, we have made two different views explicitly
called in each use case.
2017-03-14 11:47:15 +01:00
Christophe Simonis b3b7261db1 [MERGE] forward port branch saas-15 up to 65a5ced979 2017-03-13 17:54:33 +01:00
Christophe Simonis 65a5ced979 [MERGE] forward port branch saas-14 up to 777a87cde8 2017-03-13 17:37:20 +01:00
Christophe Simonis 777a87cde8 [MERGE] forward port branch 10.0 up to 2ef43281c2 2017-03-13 16:22:57 +01:00
Christophe Simonis 2ef43281c2 [MERGE] forward port branch saas-11 up to 2e972578b9 2017-03-13 15:53:55 +01:00
Christophe Simonis 2e972578b9 [MERGE] forward port branch 9.0 up to 73d6f9023a 2017-03-13 14:49:12 +01:00
Yenthe V.G e88bb57a1e [FIX] l10n_cn: load correct file for chinese accounting
The manifest loaded l10n_chart_china_standard_business_chart_data.xml but this file no longer exists in Odoo.
Changed to the new XML file.

Closes #15841
Fixes #15840
2017-03-13 14:47:18 +01:00
Christophe Simonis 73d6f9023a [MERGE] forward port branch saas-6 up to 31474efec2 2017-03-13 13:53:54 +01:00
Christophe Simonis 31474efec2 [MERGE] forward port branch 8.0 up to 7a15e52cea 2017-03-13 13:38:04 +01:00
Florent de Labarre 0ac303d12f [FIX] base_import : add xlrd to requirements.txt
Needed to import xlsx files

Closes #15644
2017-03-13 13:27:56 +01:00
Christophe Simonis 7a15e52cea [FIX] base: check ir.ui.view recursion 2017-03-13 13:27:53 +01:00
Olivier Dony 62c9cae269 [FIX] sale: display VAT once on printed orders
The customers' Tax ID (VAT number) was printed next to the shipping
address *and* next to the invoice address, when both were present.
And when the shipping and invoice addresses matched the customer
address (so neither was printed), the Tax ID  was not printed at all.

Simplify this and always print it next to the customer's address,
where it belongs.
2017-03-13 12:56:44 +01:00
Laurent Mignon (ACSONE) 6339a68db0 [FIX] purchase: add method _prepare_stock_moves
During the refactoring of Purchase, the method '_prepare_order_line'
available in Odoo 8.0 has been lost. It's therefore no more possible to
extend this method to covers use cases where we need to provide
additional data to the stock moves created from a purchase_order_line.

This restores the functionality thanks to the method
`_prepare_stock_moves`.

Closes #15842
2017-03-13 12:05:11 +01:00
stefanorigano 707eb645ef [IMP] mass_mailing: add "basic" theme for plain text mailing
Sometimes, there is a need for mass mailing "basic" mails with no
image or style. The "basic" theme is designed for this (note that
there still is the possibility to add style and images, default
images are just gray placeholder).
2017-03-13 10:55:30 +01:00
Nicolas Martinelli cab436819f [FIX] hr_expense: expense of zero
- Create an expense of 0.00, validate
- The expense can never be set as paid since it's not possible to create
  a payment of 0.00.

An expense of 0.00 still makes sense in the following use case.

An expense is paid by salary before the expense is actually made, i.e.
I get 1000 EUR to redecorate my homeoffice, I get the money beginning of
the year. After that I want to book expenses against the initial payment
until the 1000 EUR is gone and I would like to make use of the expense
workflow to approve the costs.

opw-710695
2017-03-13 08:15:26 +01:00
Odoo Translation Bot 00435d6384 [I18N] Update translation terms from Transifex 2017-03-12 04:31:45 +01:00
Odoo Translation Bot 70cac4d474 [I18N] Update translation terms from Transifex 2017-03-12 02:54:51 +01:00
Odoo Translation Bot dcd78c2c39 [I18N] Update translation terms from Transifex 2017-03-12 00:30:59 +01:00
Christophe Simonis c9e3d93ad0 [FIX] website: correct redirect with correct lang
When forcing another language that the current one (the cookie one) in an
url, the requested lang wasn't set correctly in redirect url, but the
cookie was, resulting in multiple redirect which ends with initial lang.

A side effect of this error was the inability to edit website page when
default lang is not en_US and user not in default lang.

The request context must be reset before being used by
`request.redirect` (in `url_for` method).
2017-03-10 18:31:21 +01:00
Jeremy Kersten 9edaf9fdf0 [IMP] website_form, website_hr_recruitment: improve thankyou page
Improve thank page after the application to a job.
Stop duplicate Magic field, using global fields
Add helper method on website to retreive the last created record
2017-03-10 18:20:11 +01:00
Denis Ledoux 4e95474ca1 [FIX] website_event_track: Tracks in the wrong room in the agenda
When setting an event tracks like this:
- Track 1, 10:00 to 10:30 Room A
- Track 2, 10:30 to 11:00 Room B
- Track 3, 11:00 to 11:30 Room A

In the agenda of the event, on the website, the Track 2
was displayed as in the Room A, while it should be in the Room B

opw-715480
2017-03-10 17:09:11 +01:00
Denis Ledoux 466e2b8c9f [FIX] mail: URL regex to make links clickable in chatter messages
The former URL took way too many steps to resolve
`www.odoo.com(odoo-odoo-odoo)`, more than 1 minute
according to the case, and it stucked the web client
(the entire browser actually),
and it ended matching the whole sentence as a link,
included `(odoo-odoo-odoo)`

This new regex is much simpler, resolve the above case,
and does not match `odoo-odoo-odoo` as part of the link

opw-715797
2017-03-10 17:09:11 +01:00
Martin Trigaux d5c3f360e2 [IMP] l10n_ch: translate CoA with de_CH instead of de
de_CH was not available when the CoA was first translated
2017-03-10 15:06:51 +01:00
Cedric Snauwaert c781c1e5e2 [FIX] account: when changing settings, if currency has not change, don't update it
this increases performance, reason is because when saving a res.config.setting, even if a field has not changed,
they will be updated and this might trigger recomputation, and so on...
Problem here is that when writing a currency_id to the company, all moves are impacted due to the
company_currency_id which is a related stored field. And saving the settings in accounting can be
pretty slow if we have lots of move. This fix reduce the time needed to save settings by not
writing currency_id on the company if the value has not changed.
2017-03-10 14:45:22 +01:00
Nicolas Martinelli beaea311e6 [FIX] stock: typo
In method `_check_delivery_resupply`, `new_location` is used in a
`write` call. This expects an integer (id).

However, `new_location` is the result of `_get_input_output_locations`,
which returns a recordset.

opw-716141
2017-03-10 10:39:20 +01:00
Nicolas Martinelli e6e6a8889f [FIX] account: typo
The context is created as a set, not a dict.

opw-716141
2017-03-10 10:28:23 +01:00
Nicolas Martinelli abf946086d [FIX] mrp_repair: fees
- Create a repair order
- In the "Fees" list, select a product

The default information is not loaded (description, price).

opw-709368
2017-03-10 09:21:49 +01:00
Goffin Simon 8be16e7a1c [FIX] product: group_product_variant on product kanban view
The number of variants doesn't have to be displayed if variant not enable on product.

opw:711034
2017-03-09 23:52:38 +01:00
Goffin Simon e6d790e340 [FIX] account: _onchange_partner_id not matching fiscal position
When changing partner_id on an invoice, the fiscal positions with auto_apply=True,
must be checked to apply the right one.

To have the same behavior as in 10.0

Backport of this commit: 4b11e3e3a5

opw:715511
2017-03-09 16:21:37 +01:00
Nicolas Martinelli 1d0d74bd89 [FIX] payment: transaction form
The transaction form has readability issues. It is improved by taking as
a example the partner form.

opw-711162
2017-03-09 14:43:01 +01:00
Olivier Dony 82a663db25 [FIX] mass_mailing: add missing import
Overlooked in 31e81e7b8f when
transplanting the patch.
2017-03-09 14:30:54 +01:00
Alexis de Lattre f5722e5076 [FIX] l10n_fr: add missing account 649 (CICE)
Switch account 120  to 'current year earning' type

Closes #15717
2017-03-09 14:20:36 +01:00
Laurent Mignon (ACSONE) 1dea8a53fb [FIX] resource: correct also microsecond information
A lot of methods are designed to work with pure datetime objects as args. If
the value comes from the database it will be rounded at the level of seconds
(0 microsecond). If it comes from a call do datetime.now() / datetime.utcnow()
the datetime object has a value != 0 for its mircroseconds attribute. Therefore
some methods have unpredictable results depending of the origin of the values
manipulated since the microsecond argument is missing into all the calls to
datetime.replace

Closes #15768
2017-03-09 14:07:58 +01:00
Goffin Simon bb0b4cb8f2 [FIX] fleet: return_action_to_open
The 'group_by' must be poped from the context in function return_action_to_open
because the act_window can call another model.

opw:710363
2017-03-09 13:54:33 +01:00
Simon Lejeune 4923c8f1d4 [ADD] QWeb: namespace support in static attribute
This is needed for the mexican localization. Support of ns prefixed
attribute in dynamic attributes is not supported.
2017-03-09 13:19:53 +01:00
Cedric Snauwaert 787e1037cd [FIX] product: fix default pricelist creation
Correct several issues with the automatic pricelist creation:
- multiple creation of same pricelists because company not set on new pricelist
- avoid creating pricelist if currency did not changed or if we already have a pricelist with the same currency
- improve name of new pricelist
2017-03-09 13:16:56 +01:00