Commit Graph
107370 Commits
Author SHA1 Message Date
Martin Geubelle 577311c0e1 [IMP] web_kanban: introduce field style attributes
The attribute `display` can now be set on a field in kanban.

The two possible values are
 * full: full-width field
 * right: pull-right field

The `bold` attribute is also handled with a class and not a
<strong> tag to be consistent.
2017-01-19 11:58:05 +01:00
Martin Geubelle 30958db502 [IMP] web_kanban: introduced color attribute
An attribute `color` has been introduced on the kanban record ;
it contains the field name of the color and set the corresponding
class on the record.

This will add the corresponding class for the kanban color and avoid
to set manually the good old

`t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)}'

on the kanban record.
2017-01-19 11:57:20 +01:00
Raphael Collet 3649b7f359 [FIX] base: access rights of ir.model and ir.model.fields
This partially reverts commits 5d746d0ac6 and
73de86c768.

The tightening of access rights was too strong: regular users need to be able
to read models and fields (to create an email templace, for instance.)

[FIX] ir_values: in `get_actions`, exclude field `code`
2017-01-17 16:15:26 +01:00
qdp-odoo 9dbe23e038 [FIX] base_address_city, base_address_extended: usability of res.partner form view
*street fields should be editable only if we modify the main partner address
*creating a res.city through the m2o should has default country and a domain
2017-01-13 18:27:37 +01:00
qdp-odoo 0899e8ada3 [IMP] base, base_address_extended: usability in country form view
Following tde comments, this commit enhances the 'Advanced Address Formatting' group in country view
2017-01-13 16:56:01 +01:00
David Arnold 155e74a377 [REF] account: improve inheritability in chart template generation.
This commit moves some code in order to compute all values of taxes from the tax template in _get_tax_vals(), to allow easier overwritting in localization. Courtesy of David Arnold. Was PR # 14982
2017-01-13 13:26:56 +01:00
qsm-odoo 1d3472b9d6 [FIX] web: better align domain selector elements
Mixing the use of btn-xs and btn-sm was not good for design.
This commit use btn-xs for "add a filter" and "edit domain"
buttons to improve elements alignment.
2017-01-12 13:37:10 +01:00
qsm-odoo 241f778e22 [FIX] web: allow empty domain value with the in_dialog option
The "in_dialog" option of the domain field was not working correctly
when the field value was falsy as it did not consider it to be
"[]" in that case (as it is done without the "in_dialog" option).

Same goes for the dialog which displays the matched records.
2017-01-12 13:37:10 +01:00
qsm-odoo d9c7c30856 [FIX] web: handle the case of a field domain without set model
Some domain fields are initialized with a model which depends of another
form field value. Sometimes, this value is False and the domain selector
cannot be used during that time (and was even performing useless RPC).

Now, in this case, the field domain is fully replaced by a message
which explains that a model have to be set. If you don't want this
message to be shown, you still have the possibility to not show the
field domain when there is no model thanks to the "invisible" attrs.
2017-01-12 13:37:10 +01:00
Thibault Delavallée 3bc580f9f9 [IMP] mail: uniformize deadline naming in activities, let us use deadline everywhere 2017-01-12 12:53:11 +01:00
Thibault Delavallée cbc381fb9a [IMP] ir_actions: improve form view usability
* improve string of action that creates the 'more' menu entry;
   still not the best label but at least less error prone
 * improve help tab by adding comments for model and records
   variables
2017-01-12 12:35:06 +01:00
Thibault Delavallée 5ca2bb785f [IMP] ir_cron: improve form view usability
* User renamed to Cron User which is the uid used to run
   the scheduled action
 * Clean 'repeat every' option to make it easier to understand
 * Priority field should not be named sequence
2017-01-12 12:33:12 +01:00
Thibault Delavallée c12a0f5af8 [FIX][IMP] base_automation: fix display of domain widget and remove unnecessary button 2017-01-12 12:31:49 +01:00
Thibault Delavallée aacaa7003e [FIX] ir_actions: avoid crash if action runs on a void set of ids 2017-01-12 12:31:08 +01:00
qsm-odoo 289b7cb41c [FIX] web: always create a new group on "..." domain button click
Before this commit, you had to avoid to click on the "..." icon inside
the button to have it have the right behavior.
2017-01-11 11:08:13 +01:00
Christophe Simonis 557feb950c [MERGE] forward port branch 10.0 up to 482fd04167 2017-01-10 13:50:48 +01:00
Christophe Simonis 482fd04167 [MERGE] forward port branch saas-11 up to f1583504ce 2017-01-10 13:46:17 +01:00
Christophe Simonis f1583504ce [MERGE] forward port branch 9.0 up to 3f7b1f6083 2017-01-10 12:07:44 +01:00
Ravi Gohil 23d07478e3 [FIX] mrp: fix migration issue using recordset instead of record in loop 2017-01-10 09:44:35 +01:00
Nicolas Lempereur 3f7b1f6083 [FIX] web_editor: ignore read only + debug + write
In some case (for example the one solved with b51d21c5) we can have
write done on a field text in read only mode.

With 98ed53ce if :

- such a case happened (in b51d21c5 the fix only worked after the given
  field was written one time) or a similar instance,
- and the user was in debug mode,
- and the widget used was TextFieldHtmlSimple

this could lead to an issue with the code trying to toggle the code view
mode whilst the editor is closed.
2017-01-10 08:31:38 +01:00
Nicolas Lempereur 41c64a89a5 [FIX] stock: use avg for cost in group by report
When doing pivot table data visualization, the Unit Cost of several
lines are summed up but there has more meaning if they were averaged.

This will probably still not be perfect (such as averaging two line
with different quantities the quantities would not be taken into
accounts) but it is already slightly better.

opw-694068
2017-01-09 16:53:40 +01:00
Simon Lejeune 17adc2e09e [FIX] barcodes: form view barcode handler: concurrency
Suppose the following usecase: you scan the first product of the
picking. A server onchange is then triggered. You scan the same product
a second time, before the first onchange has returned. You expect that
the first onchange is completely executed before running the second one.
This was not the case. Moreover, some onchanges were not be able to
work with the invalid  state of the formview at some times, and crashed.

The previous implementation was wrong because id didn't run the main
barcode processing mechanism inside a Mutex. It was also wrong because
it didn't correctly wait for the onchange to execute (a previous  barcode
onchanges or some classic ones) before setting the barcode field.
2017-01-09 16:36:00 +01:00
Nicolas Lempereur f27e69eced [FIX] web_editor: harmless ; missing in 98ed53ce 2017-01-09 16:26:15 +01:00
Nicolas Lempereur 81b668c3e3 [IMP] web_editor: tour testing inline editor saving (up to s11)
With 98ed53ce when a form view is saved when a html field is in code
view mode, the change is not lost.

This new backend tour check that when saving in or not in code view, the
content is saved effectively.

The test not in code view would ensure issues like #14381 #14351 #14394
are detected on runbot.

closes #14475
opw-693052

note: the old test system is used so this test is only for up to saas-11
2017-01-09 16:06:46 +01:00
Nicolas Lempereur 98ed53ce3a [FIX] web_editor: don't lose modified code view content
The intended scenario when using the code view is the following:

1) click on code view button to use code view
2) make changes
3) click on code view button to get back to wysiwyg view
4) save from the wysiwyg view

If the 3rd step was not done:

- for the inline editor, we lose the changes that have been done in
  code view,
- for the iframe editor, we lose the entirety of the content.

At one time the user was forced to go back to wysiwyg before being able
to save, but this have been removed hence the present usability issue.

With this fix, when the editor content is saved, if the user is in code
view he is automatically set back to wysiwyg view.

fixes #14648
closes #14475
opw-678677
opw-693052
2017-01-09 16:04:42 +01:00
Goffin Simon 0b2bb25084 [FIX] web_kanban: disable_multiple_selection in kanban creation
Fine tuning of this commit: 47e7f74022
Now when creating a record from kanban view by clicking on "+" button,
the stage_id is kept.

opw:703281
2017-01-09 15:22:41 +01:00
Nicolas Lempereur d40edd7052 [FIX] web: wraparound no create editable list
In e0c4ec54ca a change was done to improve the behavior in some
editable list instances, but this introduced a small issue for
list with line creation disabled.

With this change, doing tab or enter at last line should keep the
previous behavior of wrapping around and not creating a new line.

opw-703748
2017-01-09 15:03:29 +01:00
Pierre Masereel 9f94dbdba3 [FIX] account: ir.mode.access on products
When the 'Invoicing' or 'Accounting' module is installed without the
module 'Sales', only the admin user can create products in the database.

The expected behavior is that any 'Accounting Adviser' should be able to
manage some products in Odoo.

To allow 'Accounting Advisers' to manage products, we add them the CRUD
rights on 'product.product', 'product.template' and
'product.price.history'

opw-703610
2017-01-09 14:38:23 +01:00
Goffin Simon 47e7f74022 [FIX] web_kanban: column_add_record with required field
When a quality.alert was added from the kanban view, a traceback was raised
due to a coding error. In the fail function, the event is the second parameter.

opw:703281
2017-01-09 14:13:23 +01:00
Goffin Simon 5335f8c516 [FIX] sale: _get_tax_amount_by_group
When computing the amount tax by group, the taxes which affect base of
subsequent taxes must be taken into account.

opw:703524
2017-01-09 14:03:40 +01:00
Odoo Translation Bot b5381e8537 [I18N] Update translation terms from Transifex 2017-01-09 13:18:30 +01:00
Odoo Translation Bot 5f6e3f4686 [I18N] Update translation terms from Transifex 2017-01-09 12:00:30 +01:00
Martin Geubelle 63f732b9a1 [IMP] web_kanban: add bold attribute
This commit introduces a new `bold` attribute that can be set
on a <field> in kanban which will be wrapped inside a <strong>.
2017-01-09 10:52:04 +01:00
David Arnold 6ac397e58e [REF] account: improve inheritability.
Split method generate_account() in chart template generation to allow an easier overwritting of the vals in case a localization added some custom fields on account.account object. Courtesy of David Arnold(dar@devco.co)
2017-01-09 10:25:57 +01:00
Odoo Translation Bot 854ab68902 [I18N] Update translation terms from Transifex 2017-01-08 04:43:31 +01:00
Odoo Translation Bot d995739241 [I18N] Update translation terms from Transifex 2017-01-08 00:29:28 +01:00
Martin Geubelle 3d8d4de9d8 [FIX] web_kanban: more strict position for dropdown
Wherever the dropdown is in the dom, it should always be displayed
at the kanban card top right corner.
2017-01-07 15:13:59 +01:00
Martin Geubelle 9876a77b14 [IMP] odoo: modify the default kanban view
This commit adds a div `content` around the first field in the
default kanban view.
2017-01-07 15:13:50 +01:00
Christophe Simonis 98c71b23d3 [MERGE] forward port branch saas-11 up to 9073ecb6f5 2017-01-06 18:06:14 +01:00
Christophe Simonis 9073ecb6f5 [FIX] core: effectively warn on invalid custom views
Since new-api migration of `ir.ui.view`, the method that check views
raises exceptions instead of returning a boolean. Show them as warning.

Related to #14521
2017-01-06 17:55:04 +01:00
Christophe Simonis de6aaeb546 [MERGE] forward port branch 9.0 up to e0d33ce07d 2017-01-06 17:37:33 +01:00
Christophe Simonis e0d33ce07d [MERGE] forward port branch saas-6 up to 9ba3762a32 2017-01-06 17:29:42 +01:00
Christophe Simonis 9ba3762a32 [MERGE] forward port branch 8.0 up to 75692bc988 2017-01-06 17:27:06 +01:00
Christophe Simonis c382c8f2fa [IMP] core: module loading: less verbose logs
Only warn about non loaded declared models with a minimal logging level.
2017-01-06 17:11:30 +01:00
qsm-odoo 11a4e17c9c [IMP] web: add a dialog option to the FieldDomain
Now, the form FieldDomain has an option "dialog" which allows to force
the domain *edition* in a new dialog. This allows the field to be
positioned in smaller area of the form view in some contexts.
2017-01-06 16:03:09 +01:00
qsm-odoo f64c1c6b74 [IMP] web: FieldDomain panel at top right instead of below
The FieldDomain is composed of a DomainSelector widget and a button
which allows to see the records which match the domain (or an error
message if the domain is wrong).
The button was placed below the domain selector. Now, in edit mode,
it is placed at the top-right of the domain selector, saving some
vertical space.
2017-01-06 16:03:09 +01:00
qsm-odoo 20b109fac9 [IMP] web: add new DomainSelectorDialog dialog widget
The DomainSelectorDialog widget allows the use of a DomainSelector
widget inside a modal.
2017-01-06 16:03:09 +01:00
qsm-odoo b8eb821f13 [IMP] web: allow DomainSelector widget to be instanciated with a string
Before this commit, the DomainSelector had to be instanciated with an
array-typed value which forced the user to use (and import) the pyeval
module. Now, the conversion to array is done in the DomainSelector.

This commit introduces a web.domainUtils module allowing to do the
convertion array -> string and string -> array of a domain.
2017-01-06 16:03:09 +01:00
Nicolas Martinelli 100077f035 [FIX] payment_paypal: correctly parse payment_date
Paypal formats the payment date in this specific format:
`HH:MM:SS Mmm DD, YYYY PDT`.

Source: https://developer.paypal.com/webapps/developer/docs/classic/ipn/integration-guide/IPNandPDTVariables/

opw-693574
2017-01-06 14:27:17 +01:00
Nicolas Martinelli 756449cfe1 [FIX] payment_paypal: fields.Datetime
Obviously, it should be `fields.Datetime`, although it luckily works
with `fields.datetime.now()`.

opw-693574
2017-01-06 14:27:17 +01:00