Commit Graph
103227 Commits
Author SHA1 Message Date
Raphael Collet e1fb2bd080 [IMP] qweb: improve regular expressions 2016-06-14 13:12:19 +02:00
Christophe Matthieu 83ba577c30 [IMP] qweb: improve code documentation 2016-06-14 13:12:19 +02:00
Raphael Collet a32053d308 [IMP] qweb: rename methods + small code improvements
_switch_directives() -> _compile_directives()
_serialize_static_attributes() -> _compile_static_attributes
2016-06-14 13:12:19 +02:00
Christophe Matthieu 639fb27ac0 [IMP] qweb: typo and adapt 2016-06-14 13:12:18 +02:00
Christophe Matthieu 1e48122800 [IMP] qweb: don't use directive for static content 2016-06-14 13:12:18 +02:00
Christophe Matthieu 3cc44bef2a [IMP] qweb: _get_field now returns tuple with force_display 2016-06-14 13:12:18 +02:00
Christophe Matthieu b3fc5b239b [IMP] qweb: split _call_body method 2016-06-14 13:12:17 +02:00
Christophe Matthieu 08eb9384d2 [IMP] qweb: use iterator to compile directives in order 2016-06-14 13:12:17 +02:00
Christophe Matthieu f015746549 [REM] ir_http: remove cache for public user (no longer necessary) 2016-06-14 13:12:17 +02:00
Christophe Matthieu f586f9441e [IMP] ir.qweb: cache assets and check content every 3 min
Don't use cache if the xml dev_mode is active
2016-06-14 13:12:17 +02:00
Christophe Matthieu 21ade25f83 [IMP] ir.qweb: call asset to_asset inside of _get_asset instead of inside the compiled code 2016-06-14 13:12:16 +02:00
Christophe Matthieu 269837429a [IMP] ir.attachment: add an index on url field 2016-06-14 13:12:16 +02:00
Christophe Matthieu 5db7fa65fd [IMP] ir.qweb: cache the asset filename to improve speed
gain: 50% time per asset
2016-06-14 13:12:16 +02:00
Christophe Matthieu f336c9efdc [IMP] ir.qweb: use lazy property for assets id and name
gain: 1ms/asset
2016-06-14 13:12:16 +02:00
Christophe Matthieu 1583194845 [IMP] qweb: typo: remove qwebcontext and use values 2016-06-14 13:12:15 +02:00
Christophe Matthieu fc79a62609 [FIX] ir.qweb: update tests 2016-06-14 13:12:15 +02:00
Christophe Matthieu 48b4abedea [IMP] qweb: add profile options to display the time use by all computed template 2016-06-14 13:12:15 +02:00
Raphael Collet 717692d76a [FIX] website_sale: use variable partner_pl in method _get_pl_partner_order() 2016-06-14 13:12:15 +02:00
Christophe Matthieu b3302398bc [IMP] ir.qweb: extract and create independent qweb class from ir.qweb
The goal is to make the code more readable, more easily be optimized, allowing to share the library "QWEB" (python and js) separately Odoo.
2016-06-14 13:12:14 +02:00
Christophe Matthieu 4530f65211 [IMP] ir_qweb: FileSystemLoader is only use by test 2016-06-14 13:12:14 +02:00
Christophe Matthieu d9efca0908 [IMP] qweb: t-field-options is a python dict, safe_eval for compile template, not need to eval in field methods 2016-06-14 13:12:14 +02:00
Christophe Matthieu f4f396c4ab [IMP] ir_qweb: remove eval_dict, eval_expr and eval_format_expr
The compiled code must be safe_eval, don't need to eval the string after the compilation (safe eval before ast insertion)
2016-06-14 09:46:26 +02:00
Christophe Matthieu 710a7cee14 [FIX] website: t-att-*** display empty string attribute
Remove attribute only if the result is False or None
2016-06-14 09:46:26 +02:00
Christophe Matthieu d159aec83d [IMP] qweb: remove decode('utf-8') in report because qweb return unicode 2016-06-14 09:46:26 +02:00
Christophe Matthieu 956bb2b6e9 [IMP] base ir.qweb: add and update tests for the new ir.qweb 2016-06-14 09:46:25 +02:00
Christophe Matthieu 7ede9bcb2d [IMP] base ir.qweb: compile template (and use ast) to improve rendering speed
* The compiled templates are cached per user, lang, inherit context values
* ir.ui.fields: attributes method return an dict, and record_to_html return only the content value of the field
* all rendered text use build_text and all attributes use build_attribute
* t-esc-options is removed and replace by format_value method
* AssetsBundle receive the list files and remains
2016-06-14 09:46:25 +02:00
Christophe Matthieu 3ebf46fcc0 [IMP] base: add a constraint on ir.ui.view to avoid groups on template
Template arch can contrains "groups" attributes on the html tag but can't have group_id setted. (to allow a cache per template and lang instead of a cache per template, user and lang)
2016-06-14 09:46:25 +02:00
Christophe Matthieu 089fd3f145 [IMP] base: user_has_groups can express negative groups with "!"
Allow access if the user has at least one group, and has no one !group
E.g.: groups="a,!b,c,d,!e"
(a, c, b) prevent access
(c) allow access
So the negative groups have precedence.
2016-06-14 09:46:24 +02:00
Christophe Matthieu 0ebf073cdb [FIX] ir.ui.view: split search() triggering ORM bug
Search terms inside an OR branch in a domain
cannot currently use relationships that are
not required. The root cause is the INNER JOIN
used to implement it.
2016-06-14 09:46:24 +02:00
David Monjoie 1a1efe3fce [IMP] website_sale_digital: downloadable attachment marked by product_downloadable field
This allows the user to continue using the attachment feature, without making it public by
default, which was the case in the previous implementation. If you wanted to use the
product digital attachments, you were foresaking the standard attachment feature since
everything you would attach to the product would then be public and downloadable.

The "digital" product type was also removed, because you could very well want to provide
downloads for a stockable product, like an online manual or a warranty document, or
provide downloads for a service, especially considering digital products are considered
service in european laws.

The product template and variants stat buttons have also been changed:
- The template stat button now only displays the files associated at the template level,
instead of showing all the files available accross all variants.
- The variant stat button now displays the files associated with it but also with the
corresponding template, instead of showing only the files associated with the variant.

These new stat buttons are closer to what the customer will see in practice, since the
variant level stat button will show the set of files that the customer will be able to
download when he has bought that product variant. Previously, the template showed a set
of files that was never presented to any customer (since it contained the files from all
the variants at once), and the variant was showing less files, since it was ignoring the
ones from the template.
2016-06-14 09:37:35 +02:00
Ravi Patel 9416483465 [IMP] website_quote: Hide 'Unit Price' column from quote template line.
The unit price of the quote template lines is never be used anywhere

It is logical that pricelists determine the price of products and this
field is quite informative.
2016-06-14 09:17:40 +02:00
Denis Ledoux 49a9eba6e2 [FIX] point_of_sale, hw_scale: typo weighting -> weighing 2016-06-13 17:54:39 +02:00
Yannick Tivisse fe9f077872 [IMP] web_planner: 'data' and 'progress' are company dependent
Purpose:
The settings planner (implementation guide) is confusing when in multi-company:
- The accounting planner shows information about the current company; which is OK
- But the planner is not specific to that company: it is the same for all companies which is wrong.
2016-06-13 16:33:44 +02:00
Mahendra barad 703ccb9986 [ADD] event: option to install event_barcode
New Enterprise module
2016-06-13 15:16:31 +02:00
Damien Bouvy 25504cc11f [IMP] hr_timesheet: timesheet report (print) 2016-06-13 13:06:57 +02:00
Jainik Patel eda051f43d [REM] web: Remove GTK icons and replace them by Font-awesome 2016-06-13 12:04:17 +02:00
Mitali Patel 8f39c652c6 [IMP] point_of_sale: manage lot/serial number from POS front-end
Frontend:
- When product has lot/serial tracking open popup for accept lot/serial
  number when it selected.
- Add icon in order line to show related lot/serial number and it
  indicate status of product lot
- User can add or remove product by lot from current lot dialog box
- Order line quantity don't match with lot line quantity show warning
  message

Back End:
- Added model `pos.pack.operation.lot` to manage product lot related
  with pos order
- Added state button in pos session form view to show pickings which are
  not in 'Done' stage
2016-06-13 10:19:01 +02:00
Aaron Bohy 06e28ce2a4 [FIX] crm,website_sale: base_setup.action_sale_config wrong xmlid
Action action_sale_config has been moved to sales_team addon at
odoo/odoo@fa6e415.
2016-06-13 09:41:39 +02:00
jeffery chen fan 0b734418e8 [CLA] rename file name to match github account
Closes #12319
2016-06-10 15:52:13 +02:00
Jainik Patel 919bee4058 [IMP] stock: Lot/Serial Numbers label uniformization
In master , some places the string "Lot" is used and at some places
"Serial Numbers" is used , which is very confusing for the user.

Make a common string "Lots / Serial Numbers" everywhere for the uniformity.
2016-06-10 15:03:44 +02:00
Ravi Patel 598f401d67 [ADD] contacts: Move 'Contacts' root menuitem from 'mail' to a new module
Purpose:
There are too many apps when someone starts to use odoo.
The user installs an app and see at least 6 menus -> too much !

Specification:
In mail module move contacts menu into new module 'contacts' to avoid this
useless app for new users but that can be useful afterward
2016-06-10 06:17:57 +02:00
Yannick Tivisse 9e57185449 [IMP] base,sales_team: Move res_groups and menuitems to sales_team
Purpose:
Having the res_group defined in base and sales_team auto installed
with mail doens't make sense.

- Move the empty res_config class and the related view from
  base_setup to sales_team (base_setup only contains the 'General Settings'
  model and views
- Move the 'sale' related content from product to sale module (Access rights,
  menuitems,...)
- Set sales_team at autoinstall False. The module is installed when needed by
  crm or sale for example
- Set sales_team as a dependency of voip. (Access rights defined for configuration
  purpose)
- Set sales_team ad a dependency of subscription (Access rights issue too)

[FIX] account: move some ir.model.access to sale module
[FIX] payment: Move some ir.rule to website_sale
[FIX] stock: move some ir.model.access rule to sale_stock
[FIX] project: Move some ir.model.access rules to crm_project_issue
[FIX] mrp: Move some ir.model.access rules to sale_mrp
[FIX] calendar: move some ir.model.access rules to crm

Rename xmlids accordingly. Example: 'base.group_sale_manager' becomes
sales_team.group_sale_manager.

[ADD] sales_team: See own documents => See only his sales team
Moved the "User: Own Leads Only", "User: All Leads" and "Manager" groups from sale and crm
into sales_team module. Add the record rules so that user can see only his Own Sales Team
if "See Own Leads" is sales right and can see all sales teams if he is having sales rights
of "See All Leads" or manager.
2016-06-09 16:05:25 +02:00
Jairo Llopis 5cfadf5e41 [IMP] tools: support wdb in dev mode. 2016-06-09 16:01:54 +02:00
Yannick Tivisse 4906757334 [IMP] stock: Remove domain on source/destination on Operation Details
When doing an internal trasnfer, you can choose any destination
location in the header, but not on the line

This is problematic when doing a pick-pack-ship transfer. For the pick
move, you may want to change the source destination location (maybe another
warehouse why not) but as the transfer is already validated you cannot
modify it on the form. But with the Operation Details (Pencil button) you
can modify the source/destination location. The only problem is that a domain
is forcing the user to choose a source destination that is a child of the source
destination on the transfer, which makes impossible to choose a destination on
another warehouse. This tool is pretty much advanced, so we don't need to be so
restrictive.
2016-06-09 15:56:45 +02:00
Goffin Simon dbff4c6c12 [FIX] crm: field expected_revenue in crm.opportunity.report
The expected revenue in opportunity.report is in fact the probable
turnover. It was confusing with the field expected revenue in crm.lead.

opw:678062
2016-06-09 15:33:11 +02:00
Goffin Simon 28a7bcd83c [FIX] account_asset: create move for a depreciation line
The color of the button "create_move" in a depreciation line is
green if the related move is posted, orange if it exists but not posted and
red in the other case.

opw:678905
2016-06-09 14:37:27 +02:00
Raphael Collet 5032cdf64b [FIX] translate: fix test on lxml node
Specifically, replace `not node.getparent()` by `node.getparent() is None`.
2016-06-08 16:25:40 +02:00
Jairo Llopis 87d1c4abd3 [IMP] website_portal_sale: depends on portal_sale
portal_sale adds the security rules for website_portal_sale to work proprerly

Closes #12283
2016-06-08 15:57:51 +02:00
Jeremy Kersten 4a4c4e1b95 [FIX] mail: display date and datetime in tracking value with the right timzeone.
When tracking value is converted to be rendered as a message_post, we convert
the date/datetime with the current local from momentjs.

Related to #12327

Courtesy of @aab-odoo for help and review.
2016-06-08 15:43:52 +02:00
Jeremy Kersten 039e182fe3 [REF] mail: avoid duplicated code for old and new value. 2016-06-08 15:43:52 +02:00