Commit Graph
110321 Commits
Author SHA1 Message Date
Joren Van Onder 4d461cbe41 [IMP] point_of_sale,pos_reprint: allow reprinting without POSBox
Closes #16452
2017-06-12 17:16:02 -07:00
Fabien Pinckaers aceabdbca1 [IMP] hr: show company_id on hr.job 2017-06-12 15:46:01 -07:00
Christophe Simonis a47a95cde0 [MERGE] forward port branch saas-16 up to 76262f2043 2017-06-12 20:41:44 +02:00
Christophe Simonis 76262f2043 [FIX] web: handle correctly deactivation of duplicate option
This new behavior has been introduced by previous forward-port.
2017-06-12 20:10:11 +02:00
Christophe Simonis 50d8ea1d58 [MERGE] forward port branch saas-15 up to aae12c2bad 2017-06-12 19:37:28 +02:00
Christophe Simonis aae12c2bad [MERGE] forward port branch saas-14 up to 62fec71568 2017-06-12 19:19:42 +02:00
Christophe Simonis 62fec71568 [MERGE] forward port branch 10.0 up to fcc33f3e09 2017-06-12 18:55:24 +02:00
Christophe Simonis fcc33f3e09 [MERGE] forward port branch saas-11 up to 6ceecffcad 2017-06-12 18:52:53 +02:00
Christophe Simonis 6ceecffcad [MERGE] forward port branch 9.0 up to d9d455bea3 2017-06-12 18:18:05 +02:00
Christophe Simonis d9d455bea3 [MERGE] forward port branch saas-6 up to 5ae9205070 2017-06-12 18:12:16 +02:00
Christophe Simonis 5ae9205070 [MERGE] forward port branch 8.0 up to 06141c34a5 2017-06-12 18:08:03 +02:00
Fabien Meghazi 488519ef89 [IMP] assetsbundles: show css compiler returncode if no output 2017-06-12 17:38:33 +02:00
Goffin Simon 7bc52a34ba [FIX] sale_margin: margin in company currency in sale.report
The margin must be expressed in the company currency like price_total
or price_subtotal.

opw:746038
2017-06-12 16:54:29 +02:00
Christophe Simonis 222cca2feb [FIX] crm: valid the salesteam when programmatically change the user of a lead
Implement it as a constraint.

Better implementation of fdc8749888
2017-06-12 16:48:08 +02:00
Cédric Pigeon b5a224a583 [FIX] add missing multi-company security rule for stock_location_route
Multi-company rule for stock_location_route

opw:746761
2017-06-12 16:23:21 +02:00
Martin Geubelle a4d9292a12 [FIX] web_kanban: allow column creation on custom model
This is a back-port of the commit https://github.com/odoo/odoo/commit/1a2c05e98bba7694831c82b7be8bb81a9c46535c
that had been applied in saas-16.

As this has been considered as a bug, it should be fixed in previous versions.

No need to forward-port it after saas-15 then.
2017-06-12 16:16:59 +02:00
fwi-odoo 06141c34a5 [FIX] auth_oauth: don't assume that google and facebook providers always exist
Before this commit, it was not possible to reach the general settings when one
of the "default" provider was delete.
After this commit, we don't assume anymore that there are google and facebook
providers.

opw-746907
2017-06-12 15:13:09 +02:00
Thomas Binsfeld 2dc82664ae [FIX] purchase: billed qty
In a SO, the "Invoiced Qty" can decrease if the refund is generated from
the SO. It doesn't decrease if the refund is generated from the Invoice.
However, we don't have this mechanism in a PO since the invoice is not
generated directly from the PO. There is therefore no way to decrease
the "Billed Qty".

We authorize the "Billed Qty" to decrease in the case of PO.

Backport of c6a7e4fbb9

Closes #17564
opw-747038
2017-06-12 14:49:02 +02:00
Nicolas Martinelli 6582781058 [FIX] hr_expense: multi-currency
When an expense sheet contains several expenses with various currencies,
some issues arise:
- the currency is not specified in the form view
- the report mixes the currencies
- the total amount doesn't make any sense

Fixes #17341
opw-745714
2017-06-12 14:43:05 +02:00
qsm-odoo f8285ef439 [IMP] website: add a way for css to detect if flex can be used
Website content is not supposed to use flex as it is not supported by
some old browsers. This commit provides a way to use flex only for
browsers which support it. When designing a snippet, you can use flex
to design elements and then write other style for when flex is not
supported.

Using flex should however still be avoided when possible. But hopefully,
this commit will allow to build greater snippets whose ugly non-flex
style can be disabled on demand or dropped in a future odoo version.
2017-06-12 14:04:56 +02:00
xmo-odoo c257daf310 [FIX] account: import does not set partner_type
When creating an account.payment via the form view, an onchange sets the
partner_type based on the payment_type (which has a contextual default)
and the field is view-required.

When importing however if the user does not specify a partner_type
(which they are not specifically told about) the payments will be
created with no partner_type and thus classified as "internal payments"
and will not appear in either the Sales > Payments or the Purchases >
Payments, confusing them and making them think the import has failed
despite having correctly validated and raised no errors.

Add a default_partner_type matching each action's domain (and default_payment_type) such that the imported payments are correctly classified by default.

OPW-746479

fixes #17388

closes #17497
2017-06-12 12:16:16 +02:00
Xavier Morel fe6ce260a5 [FIX] P3: hash collections iteration issues
See various commits for information

Closes #17111
2017-06-12 12:08:39 +02:00
fwi-odoo b6a08dc982 [FIX] web: hide 'duplicate' action for ir.model.fields
It shouldn't be possible to duplicate ir.model.fields. Add attribute
´duplicate´ which can be set to false to hide the duplication option in the
action menu.
2017-06-12 11:14:55 +02:00
Nicolas Lempereur ed61da6793 [FIX] base: duplicate company => duplicate partner
The name of a company is uniq. The name of a company comes from a
partner and is required.

Thus duplicating a company didn't work.

With this change, if no partner is overriding the copy, the current
partner is duplicated and associated to the new duplicated company.

opw-746106
closes #17532
2017-06-12 11:14:06 +02:00
Xavier Morel 5654a1ab95 [ADD] P3: hash randomisation docs 2017-06-12 11:04:23 +02:00
Xavier Morel 4957296f1d [FIX] P3: incorrect dependencies
website_sale_digital overrides a method defined on
website_portal_sale, but only depends on website_portal and extends
the base controller from website_portal. Depending on the (relative)
order in which the system decides to load website_sale_digital and
website_portal_sale we can end up with the former's template but the
latter's methods (without the proper context data). Which ends up
commonly crashing in P35.

Fix dependencies and controller inheritance.
2017-06-12 11:04:23 +02:00
Xavier Morel ea21c7a8ee [FIX] P3: try to write fields in source order
When adding a Python constraint on a (relational) field which uses an
other (relational) field, the order in which the fields are written is
also the order in which they are checked, and if a constraint depends
on a sibling field this might blow up in P3, here as in as in
test_new_api.message.Message (_check_author constraint depends on
parent discussion's participants): test_11_stored would commonly fail
when creating a discussion with two participants and 3
messages (because the message's authors would be checked before the
participants had been associated with the discussion).
2017-06-12 11:04:23 +02:00
Xavier Morel ba1b88db34 [FIX] P3: sales tests relying on dict iteration order
test_00_sale_stock_invoice would blow up in Python 3, because the
test(s) relies on the iteration order of the products dict to know
where which line is (holy mother of caca) an set the relevant line's
data by indexing directly into it.

This would fail (with very odd results) in Python 2 and 3 as it could
set information on the "wrong" order line aka the order line for a
different product (and invoicing mode/whatever) than intended.

Fix the issue by hard-coding the products iteration order (to the
iteration order I get in Python 2.7.10 on that dict literal) using an
OrderedDict.
2017-06-12 11:04:23 +02:00
Xavier Morel a5283f90ce [FIX] P3: QueryURL relying on kw iteration order 2017-06-12 11:04:23 +02:00
Xavier Morel b62ba7ee1a [FIX] P3: initialisation order of columns
Python 3's hash randomisation means columns can be iterated — and thus
initialised — in any order (within a given model/override anyway),
which means there can be an implicit dependency on column
initialisation order e.g. (res.company).currency_id has a default
which fetches the currency_id of the company_id of the administrator,
and res.company has a _order=sequence,name, if the currency_id field
is created before the sequence the SELECT query will blow up as the
sequence column will not exist yet.

Attempt to always manipulate (iterate & initialize) fields based on
their order of definition using a global sequence number.
2017-06-12 11:04:23 +02:00
Xavier Morel 1d579221d7 [FIX] P3: bypass hash randomisation in modifiers
Compare Python dict to Python dict, no reason to dump the generated
modifiers to JSON before comparing them to JSON strings…
2017-06-12 11:04:23 +02:00
Xavier Morel 1328416959 [FIX] P3: hash randomisation in XML/HTML stuff
* Have the cleaned up style attributes be dumped in the same order
  they were originally so that we can easily validate against text
  content.
* While lxml's attributes are stored in an ordereddict, namespaces are
  not and thus when comparing text serialisation of namespaced
  documents the ordering of namespaces can differ between runs.

  Fix by comparing the LXML trees directly.
2017-06-12 11:04:23 +02:00
Xavier Morel f085a67b74 [FIX] P3: columns initialisation order is unspecified
With P3's hash randomisation, assuming one column is initialised
before the other in the same model basically never works.
2017-06-12 11:04:23 +02:00
xmo-odoo bf206e446b [IMP] config: better no interpolate 2017-06-12 11:03:28 +02:00
xmo-odoo ed4a899254 [IMP] config: better no interpolate 2017-06-12 11:02:36 +02:00
Nicolas Martinelli 1aff1e3de8 [FIX] point_of_sale: error picking
- Create a stockable and a service product
- In the POS, sell 1 unit of the stockable product and -1 unit of the
  service product
- Validate and pay

2 pickings are created: a picking containing the stockable product which
stays in state 'Draft' and an empty picking in state 'Available'.

The problem comes from the negative quantity on a service product: we
should filter out services when checking the quantities.

opw-745712
2017-06-12 10:41:05 +02:00
Odoo Translation Bot 264c2c64f2 [I18N] Update translation terms from Transifex 2017-06-11 07:07:07 +02:00
Odoo Translation Bot 5952c394e5 [I18N] Update translation terms from Transifex 2017-06-11 04:27:18 +02:00
Odoo Translation Bot 4dbc9b5472 [I18N] Update translation terms from Transifex 2017-06-11 00:27:53 +02:00
Christophe Simonis 4ae122b1b2 [MERGE] forward port branch saas-16 up to 78dc8f6871 2017-06-09 19:12:08 +02:00
Christophe Simonis 78dc8f6871 [FIX] website_crm_partner_assign: correctly check value changes
Since fdc8749888, leads may have a
default team set. Correctly check fields against previous values.
2017-06-09 18:56:07 +02:00
qsm-odoo fc53b91b06 [FIX] web: adapt tests to 3741603495
The datepicker is now forced to be in the <body/>, so the tests had to
search it in there.
2017-06-09 17:55:52 +02:00
Christophe Simonis ab02bf34b0 [MERGE] forward port branch saas-16 up to cc38b93ab2 2017-06-09 17:11:47 +02:00
xmo-odoo c50745f1a1 [FIX] base_geolocalize: geocode errors out on empty address
It's unclear whether that's a recent change or a long-standing issue,
however currently if geocode is called with an empty address string it
will reply with a 400 Bad Request, which gets raised as an exception and
forwarded to the user. That is not a great experience.

Shortcut the entire thing and just return None (= geolocation failed /
no geolocation) on trying to geolocate an empty address.

OPW-746686

backport of 74a89bcf5c
2017-06-09 16:52:31 +02:00
Christophe Simonis cc38b93ab2 [MERGE] forward port branch saas-15 up to 49f819a7a7 2017-06-09 16:43:27 +02:00
Jérome Maes fb504f3cbd [FIX] sale_timesheet: compute revenue in a determinist order
Since we handle rouding error with the last line as
the difference of total and the other (already computed),
the order of lines to process is important.
Calling 'sorted()' on the lines to process allow
to always have the same last one.

Hope this will fix the random rounding bug, and make
the multi currency test always green !
2017-06-09 16:27:15 +02:00
Jérome Maes c5df9b572c [FIX] sale_timesheet: use same method for delivered and ordered
Respect the same computation about rounding for
delivered and ordered services when computing
timesheet revenue.
2017-06-09 16:26:53 +02:00
Christophe Simonis 49f819a7a7 [MERGE] forward port branch saas-14 up to b6c7d71899 2017-06-09 16:21:15 +02:00
Christophe Simonis b350c29e44 [FIX] setup: install html2text dependency 2017-06-09 15:48:49 +02:00
Bhavesh Patel 7ce449a543 [ADD] sale, stock, website_sale: option for bpost connector installation 2017-06-09 13:38:50 +02:00