Commit Graph
99161 Commits
Author SHA1 Message Date
Josse Colpaert a934b9e1ba [IMP] delivery: add fields for retrieving the bulk weight and the weight of the packages of a picking
As the transporter interfaces will put a label on every package,
it is in handy to have a field with the list of the final packages
(and their weights) treated in  the picking.
We give a weight for the products that are not in a package also(bulk).
We only put the weight on the package in the views.

The weights in the product form views should appear entirely or not in
product / product templates (only when only 1 variant)
(attrs was only on the field, not label, ...)

The digits= for the weights are not needed as there is a decimal precision
on these fields.
2015-09-09 17:11:54 +02:00
Xavier Morel cdc55cf8a6 [REM] membership: yml demo file
* non-deterministic execution (depending on having a chart of account
  loaded before it), unreliable as demonstration dataset
* hot mess, very debatable purpose
* apparently not used by membership tests (since unreliable execution)
* most expensive single data file when it happens to run in full (12~15s
  on runbot)
* heresy
2015-09-09 16:54:07 +02:00
Jos De Graeve ca47d4117f [FIX] delivery: Dont add other companies taxes deliveries
When delivery_set is called from the website_delivery module, the
uid is set to SUPERUSER_ID. In a multi-company environment, this
causes the linked taxes from the delivery product to be added
to the sale_order_line.

Closes #8311
2015-09-09 16:50:26 +02:00
Yannick Tivisse 69e42cb2b2 [IMP] sale: put some SO in confirmed state in demo 2015-09-09 16:49:05 +02:00
Yannick Tivisse b9cf338c21 [FIX] hr_timesheet: demo timesheet lines weren't taken into account in report 2015-09-09 16:48:27 +02:00
Yannick Tivisse 6c987e74c4 [FIX] sale: Wrong filter definition 2015-09-09 16:47:47 +02:00
Simon Lejeune 33f686690a [FIX] account, crm, stock: various fixes in planners 2015-09-09 15:56:48 +02:00
Olivier Dony 2f8d6e796b [CLA] Update Camptocamp CLA
Typo + add older Camptocamp contributors.

Confirmed by email with Joël Grand-Guillaume
and Luc Maurer on 2015-09-09.
2015-09-09 15:51:15 +02:00
Christophe Simonis 5e1eb5f34c [IMP] mail: avoid followers with dissociative identity disorder 2015-09-09 15:38:12 +02:00
rsi-odoo 1e153e8aa5 [FIX] l10n_ch: use right tag in tax for enterprise report 2015-09-09 14:50:48 +02:00
Christophe Simonis 6d0c7c731b [FIX] hr: add missing dependency on web_tip
The dependency has wrongly been removed by d27910a8f2
2015-09-09 14:38:35 +02:00
Yannick Tivisse 09cd1ab280 [IMP] Sale: Make demo data 'Deposit' invisible to the user + invoice wizard cleaning
- Move product_product 'Deposit' from demo to data + make it a product_template
- Remove group_no_one on archive button for product_product and template
- Remove a commented import_pdb; pdb.set_trace()
- Add in the sales config 2 fields to edit the account and the taxes for the deposit product
- On the sale orders lines invoicing wizard, display the account and the taxes for the deposit product
instead of the product itself
- Set the product 'Deposit' as inactive to be hidden to the users
2015-09-09 14:23:28 +02:00
Yannick Tivisse 1f28bd8348 [FIX] project: task_count counts tasks in undefined stage, and not inactives tasks anymore 2015-09-09 14:19:07 +02:00
Olivier Dony 7346352fd9 [FIX] account: new api typo, self.env.user is current user
`uid` not defined in this context
2015-09-09 14:13:40 +02:00
Stéphane Bidoul 8d58d985dd [FIX] http: no auto-load for modules not installable
Closes #8289
2015-09-09 13:56:55 +02:00
Martin Trigaux 3bf061dc09 [FIX] crm: incorrect sentense in planner
Courtesy of Eric Geens
2015-09-09 13:38:43 +02:00
Denis Ledoux 097fbd3941 [FIX] payment_paypal: receiver email different than business email
Check receiver_email only if receiver_id was not checked.
In Paypal, this is possible to configure as receiver_email
a different email than the business email (the login email)
In Odoo, there is only one field for the Paypal email:
the business email. This isn't possible to set a receiver_email
different than the business email.
Therefore, if you want such a configuration in your Paypal,
you are then obliged to fill
the Merchant ID in the Paypal payment acquirer in Odoo,
so the check is performed on this variable instead of the receiver_email.
At least one of the two checks must be done, to avoid fraudsters.

opw-648776
2015-09-09 13:38:19 +02:00
Olivier Laurent d0faf28154 [FIX] analytic: methods used in default attribute should return a RecordSet
If a method used as a default returns an id instead of a RecordSet,
it could fail in 'convert_to_write' (Many2One field) because it will try
to return "value.id". If "value" is an integer, it fails.

Also changed the method to a lambda expression and removed the
'_default_user' method because it's not used anywhere.
2015-09-09 13:36:33 +02:00
Martin Trigaux 4f09d136d0 [FIX] l10n_*: normalise name of modules
Use the format '<Country> - Accounting' for every localisation module.
This allows to have a coherant list of modules sorted by country.
2015-09-09 13:35:28 +02:00
xmo-odoo d2d8d1ca5d [REM] hr_applicant_document: view file reintroduced during forward port
The whole module had previously been removed.
2015-09-09 12:32:22 +02:00
Nicolas Lempereur 4626240d5d [FIX] point_of_sale: don't read for barcode when search focused
The product search field already handle product scanned by a code bar
(by adding it if it corresponds to only one product to the order) so
when the barcode is entered in this search input, the scan doesn't need to
be done.

closes #8433
opw-648856
2015-09-09 12:10:59 +02:00
cod-odoo c61d20366c [FIX] l10n_do: add new tags in taxes. 2015-09-09 11:34:38 +02:00
Nicolas Martinelli 516b1e1cce [IMP] auth_signup: rename "Reset password" to "Confirm" 2015-09-09 11:28:10 +02:00
Goffin Simon c092c40d14 [FIX] purchase: _calc_new_qty_price
The price must be compute with the purchase unit of measure set
on the product because qty is computed according to this unit of
measure.

opw:648513
2015-09-09 10:53:48 +02:00
Nicolas Martinelli 186c77dad1 [FIX] stock: do not remove lot id when splitting lot
Partial revert of the commit b62191c171.
We want to keep the lot number if we don't add all the products at once.

opw-648629
Fixes #7044
2015-09-09 10:50:04 +02:00
Nicolas Lempereur 70b869a0e4 [FIX] website_blog: button could be already removed 2015-09-09 10:40:57 +02:00
Nicolas Lempereur 655b13b093 [FIX] web: m2m wait deferred to use fields 2015-09-09 10:36:07 +02:00
Raphael Collet b99ef3b125 [IMP] base: rationalize indexes on ir.model.data
Indexes on individual columns (module, name, model, res_id) have been dropped,
and the index on (model, name) was duplicated in a unicity constraint.  We have
kept two useful indexes, namely:
 - a unique index on (module, name)
 - a simple index on (model, res_id)
2015-09-09 09:48:08 +02:00
Raphael Collet 085875619f [FIX] fields: in one2many.set, replace incorrect query by ORM access
When linking a record into a `one2many` relation with command `(4, rid)`, a
query checks whether the record is already linked to the current record id:

    SELECT 1 FROM {inv_table} WHERE id={rid} AND {inv_field}={id}

where `inv_field` is the name of the inverse field, and `inv_table` is the
table where this field is stored.

The query is wrong if the inverse field is inherited, because the `rid` does
not belong to the table `inv_table`.

The test has been replaced by a plain ORM access:

    rec = obj.browse(cr, SUPERUSER_ID, rid)
    if int(rec[inv_field]) != id:
        ...

This fixes #4685.
2015-09-09 09:36:40 +02:00
Christophe Matthieu 29e45d1cc2 [FIX] im_livechat, website: typo t-translation 2015-09-09 08:44:40 +02:00
Fabien Pinckaers 91a87e0cdf [IMP] removing name field 2015-09-08 20:07:31 +02:00
Wolfgang Taferner b89b7e0554 [FIX] website_sale, website_sale_delivery: Improve GA eCommerce data
As eCommerce is not complete and could be improved easily and was
not working anyway until
https://github.com/odoo/odoo/commit/9d0cb024fdc784fa7d53fecd3f0b9125c6f06481

- Use EAN13 instead of internal product id if available
- Add tax to transaction data
- Add shipping costs if available to transaction data
2015-09-08 18:06:38 +02:00
Olivier Dony a3732aef6e [LEGAL] Switch to LGPLv3 License
99% of the contributors have signed the CLA
The rest of them have been contacted by email
and are free to either sign the CLA or ask
for their contributions to be removed from
Odoo Community Edition.

See also:
- https://www.odoo.com/cla
- https://www.odoo.com/blog/odoo-news-5/post/adapting-our-open-source-license-245
2015-09-08 17:58:38 +02:00
Simon Lejeune 598475c3f2 [FIX] crm, project: planner layout issues 2015-09-08 17:57:43 +02:00
cod-odoo 089db74e77 [FIX] l10n_br: created tags for all taxes. 2015-09-08 17:27:03 +02:00
Denis Ledoux e509f9155b [FIX] google_calendar: all day event stop date
For an event during all day, during 2 days,
e.g. September 9th and September 10th,
Google expects as start date the first day, and as
stop date the day after the last day.
e.g.
start 2015-09-09
stop 2015-09-11

Even if, afterwise, in the Google Agenda interface, it will
be correctly displayed 2015-09-10 as end date.

This must be applied at the event creation AND at the event
update. It was not the case until this revision.

Besides, we now use the event `stop_date` in Odoo, instead
of the duration, in case the duration has been incorrectly
computed.

opw-648867
2015-09-08 17:21:20 +02:00
Martin Trigaux 3280819142 [I18N] crm_partner_assign: fix outdated source file
Seems it was not updated at 8.0 release, missing many terms
Fixes #6655
2015-09-08 17:19:47 +02:00
Odoo Translation Bot 101540b491 [I18N] Update translation terms from Transifex
Fetch the translations with the option --all to fetch missing languages
and use --minimum-perc 10 to avoid empty files

Fixes #8423
2015-09-08 17:07:59 +02:00
mdi-odoo 620bf116d8 [IMP] sale, purchase: the return of mail.template (Sale order, and purchase RFQ)
These templates were deleted with c04065abd8 but there xml_id were still used in the code. Mail template are good for people, so we make them come back from the dead ...
2015-09-08 16:57:51 +02:00
Martin Trigaux 3120357707 [I18N] export translations of models.py and tools 2015-09-08 16:55:40 +02:00
Martin Trigaux 8ac392873b [FIX] tools: export translations of models.py
When exporting the translations, the terms stored in individual files outside of
addons folders (e.g. openerp/models.py) needs to be scanned as well and added in
base translations.
Some folders like osv and report were enough to add these files but with the new
api moving the ORM to openerp folder, a non-recusrive scan needs to be added.

Fixes #7482
2015-09-08 16:55:36 +02:00
Damien Bouvy c7b82ce43a [IMP] remove lost orphan file 2015-09-08 16:53:30 +02:00
Christophe Simonis 3321412a7b [FIX] base: assets' on-disk absolute path computation
Do not use `openerp.http.addons_manifest` dict to find the absolute
on-disk path of an asset. This dict is only populated when the first
non-xmlrpc http request is made. Avoid crash if this happen by using
`get_resource_path` to find ... the resource path we search.
2015-09-08 16:37:06 +02:00
Damien Bouvy 95b6bafec9 [FIX] website_quote: when paying from the frontend, do not explicitly set the partner_country_id; it is automatically handled by the payment.transaction create is the partner is set 2015-09-08 16:31:54 +02:00
Damien Bouvy f007287bb8 [IMP] payment_ogone: when receiving the response of a 'form_save' transaction, create a payment_method with the corresponding data 2015-09-08 16:30:23 +02:00
Damien Bouvy e178b42a91 [FIX] payment: triggering the on_change to get partner details sometime put the partner_country_id to False; the default was there explicitly to avoid this kind of problem 2015-09-08 16:30:12 +02:00
Martin Geubelle 325f9623b4 [ADD] *: add color field on tags 2015-09-08 16:24:32 +02:00
Martin Geubelle 247e586542 [FIX] web: many2many2tags if no color field
If there is no field 'color' on tag model, the colorpicker should not be displayed.
2015-09-08 16:24:32 +02:00
Martin Trigaux 7d77678f2f [IMP] crm: fix English mistakes and rephrase
Courtesy of Eric Geens
2015-09-08 16:03:07 +02:00
Luc Bonjean 4792156e1f [CLA] Corporate Lubon bvba
Closes #7671
2015-09-08 15:51:50 +02:00