Commit Graph
174 Commits
Author SHA1 Message Date
Nicolas Martinelli 3375027421 [IMP] doc: translate consolidation label
The `consolidation_label` attribute is replaced by `string`. This way,
the label is taken into account by the translation tools.

This is the modification of the documentation regarding the Enterprise
improvement.

opw-683601
2016-08-10 13:04:39 +02:00
Yannick Tivisse a3f83916d0 [FIX] report: Pass correctly the docids to render_html method
In the 'get_html' method, the report is using a custom model to render its html,
we should use its own 'render_html' method to generate the report. During the
module migration, we replaced
'report_model.render_html(cr, uid, ids, data=data, context=context)'
by
'report_model.render_html(data=data)'

The new API signature of 'get_html' is

    @api.model
    def get_html(self, docids, report_name, data=None):

That way, 'render_html' doesn't receive docids anymore when called. We should do instead

    if report_model is not None:
        return report_model.browse(docids).render_html(data=data)

As render_html is an api.multi method, this is all wrong too, because we'll send a
browse record with the custom report model to the render_html method, to use the
ids with 'self.ids' that are absolutely not corresponding to the report model but to
to the record model we want to print (an invoice for example).

In old API style we were sending a list of ids, but it's not correct to keep the same
behavior by sending a browse record with only the ids relevant. We have also to
change render_html method decorator to @api.model with a new signature

    @api.model
    def render_html(self, docids, data=None):

And replace the call to render_html by

    if report_model is not None:
        return report_model.render_html(docids, data=data)

In the case the report is printed from a wizard, this is sufficient because the ids
are taken from the active_ids in context, or in data.

In the case the report is printed from a simple action, we should replace the occurence
of 'self.ids' (which doesn't mean anything) to 'docids'

This fix doesn't solve the printing issues for the custom accounting reports, because
the method get_pdf has been reimplemented in the module account_reports.
2016-08-10 11:13:33 +02:00
Christophe Simonis f670b3b1df [MERGE] forward port branch saas-11 up to 3aea814 2016-07-29 15:33:51 +02:00
Christophe Simonis 529f88dbd3 [MERGE] forward port branch saas-10 up to 4ca04fd 2016-07-29 13:01:29 +02:00
Christophe Simonis 73cc3611b4 [MERGE] forward port branch 9.0 up to d35f425 2016-07-28 12:31:29 +02:00
Christophe Simonis d35f4250cc [MERGE] forward port branch saas-6 up to 7079a0b 2016-07-28 12:22:03 +02:00
Christophe Simonis 7079a0be30 [MERGE] forward port branch 8.0 up to 8ceb943 2016-07-27 18:13:51 +02:00
Martin Trigaux 245e38d242 [FIX] doc: remove statusbar_color reference
This attribute has been removed from the web framework since b4c28050
and should not keep example of code with it.
Related to #5987
2016-07-26 14:54:25 +02:00
Christophe Simonis cfb0c0dead [MERGE] forward port branch saas-11 up to 7ae5121 2016-07-25 17:17:15 +02:00
Christophe Simonis 7ae5121877 [MERGE] forward port branch saas-10 up to fc0f023 2016-07-25 16:06:15 +02:00
Christophe Simonis fc0f023053 [MERGE] forward port branch 9.0 up to 1089dcf 2016-07-25 15:07:47 +02:00
Martin Trigaux 880df4e8b6 [IMP] doc: clarify web client terminology
To avoid confusion such as in #12884
2016-07-25 14:30:20 +02:00
Martin Trigaux b85ef7ff1b [FIX] doc: indendation
Otherwise the text is considered as a quote
2016-07-25 13:56:33 +02:00
rgeleta 794459ade6 [FIX] doc: correct spelling mistake in reference
Closes #12865
2016-07-22 14:11:27 +02:00
Christophe Matthieu 032122484e [TYPO] qweb: use the same option attribute for t-esc t-raw and t-field
t-options instead of t-field-options
2016-07-05 18:44:58 +02:00
Aaron Bohy 1339180ba8 [ADD] base: ir_actions: target attribute for ir_actions_client
Allows to open a client action in a dialog, fullscreen, or in the current
window with a cleared breadcrumb
2016-06-24 16:26:05 +02:00
Christophe Simonis da53a27a5d [MERGE] forward port of branch saas-11 up to c88c70e 2016-06-21 16:24:38 +02:00
Christophe Simonis c88c70e900 [MERGE] forward port of branch saas-10 up to d73f0d8 2016-06-21 13:58:24 +02:00
Christophe Simonis d73f0d8063 [MERGE] forward port of branch saas-9 up to 68f5163 2016-06-21 12:42:34 +02:00
Christophe Simonis e37ba61832 [MERGE] forward port of branch saas-6 up to b87a93a 2016-06-20 14:20:03 +02:00
Christophe Simonis b87a93a091 [MERGE] forward port of branch 8.0 up to 5b1beec 2016-06-20 13:34:46 +02:00
Martin Trigaux 9007ed4c0b [FIX] doc: Research -> Search
If I need to do researchs to find a quotation, the goal of having a userfriendly
software may be missed.
2016-06-17 09:48:47 +02:00
Nick-OpusVL bdf93910c3 [FIX] doc: 'Searching' instead of 'Research'
The word 'Research' isn't usually used in this context.  'Searching' is better.
Closes #11517
2016-06-17 09:40:46 +02:00
Aaron Bohy 6c9567ae3c [IMP] base,web: ir_action: target main to clear breadcrumbs
New value for the selection field 'target' of ir_actions_act_window which
forces the breadcrumbs to be cleared before executing the action.
2016-06-16 13:48:18 +02:00
Christophe Matthieu 78b52fb637 [FIX] templates: remplace true by True for t-field-options
t-field-options is a python dictionary.
'true' is evaluated as None because the qweb did not find any value for 'true' key.
2016-06-14 14:26:42 +02:00
Christophe Simonis 7306e888a6 [MERGE] forward port of branch saas-11 up to ac50230 2016-06-08 12:28:16 +02:00
Christophe Simonis ac5023060c [MERGE] forward port of branch saas-10 up to 2f948c7 2016-06-08 12:19:23 +02:00
Christophe Simonis 2f948c76aa [MERGE] forward port of branch saas-9 up to 3ed483c 2016-06-07 19:45:02 +02:00
Olivier Laurent e5a42b2644 [FIX] doc: use correct variable in bash example 2016-06-07 08:48:30 +02:00
Christophe Simonis e54fb3eb22 [MERGE] forward port of branch saas-9 up to 30864b6 2016-06-03 12:33:58 +02:00
Jairo Llopis f94f570be6 [FIX] doc: declaration of computed fields
Cannot link a method before declaring it.

Closes #12057
2016-06-02 17:56:23 +02:00
Christophe Simonis 4f6d3b680a [MERGE] forward port of branch saas-11 up to bb442fd 2016-05-24 14:48:59 +02:00
Christophe Simonis e641d740d7 [MERGE] forward port of branch saas-10 up to fac4cc7 2016-05-24 14:08:42 +02:00
Christophe Simonis fac4cc7006 [MERGE] forward port of branch saas-9 up to f8e6bb7 2016-05-24 13:19:19 +02:00
Cody Kitterman 68c6a51bfe [FIX] doc: corrects spelling errors for cmdline
From #12028
2016-05-23 12:44:33 +02:00
Jérome Maes dfcbcb02ce [IMP] doc : add python idioms and odoo specific coding guidelines
- add python idioms
- odoo specific guidelines (for ORM, translations, ...) inspired from old guidelines v6.0
- some other best pratices
2016-05-19 14:39:52 +02:00
Jérome Maes b04d6e0ac3 [IMP] doc : expand the coding guidelines
- correct typos
- clarify some points, according to the community comments
- precise the xml notation : record tag vs act_window/menuitem/... tags
- add organization of report, wizard, data/demo, ... (directories and naming conventions)
- new conventions for 'symbols'
- ...

Thanks to @rim-odoo for its grammar extremist review, and @tde-banana-odoo for our long debates about wizard conventions.
2016-05-19 14:39:52 +02:00
Nicolas Martinelli 7201207a13 [IMP] doc: add drag_resize option to gantt view
`drag_resize` is a boolean field which allows/prevents the possibility to
resize a task. Value is `true` by default.
2016-05-18 13:04:22 +02:00
Christophe Simonis 0fbc92e0c4 [MERGE] forward port of branch saas-10 up to 1e86774 2016-05-04 17:09:51 +02:00
Christophe Simonis 1e86774207 [MERGE] forward port of branch saas-9 up to 89873cb 2016-05-04 15:42:26 +02:00
Martin Trigaux f47e39edf9 [IMP] doc: add documentation of read_group
Has already a docstring but was not included
2016-05-04 13:42:47 +02:00
Jeremy Kersten 679f14dc59 [ADD] base: view inheritance with wrapping support
When using the inheritance spec `position="replace"`,
the framework will now support a text node exactly
equal to `$0` and will replace it with the node
that was matched by the inheritance locator.

Given an original view equal to this:
```
   <div class="foo">
     <p class="bar">the paragraph</p>
   </div>
```

And an inherited view with the following inheritance spec:
```
   <p class="bar" position="replace">
      <div class="panel">
        <div class="panel-header">The Title</div>
          <div class="panel-body">
            $0
          </div>
      </div>
   </p>
```

The finalt result after inheritance would become:
```
   <div class="foo">
      <div class="panel">
        <div class="panel-header">The Title</div>
        <div class="panel-body">
          <p class="bar">the paragraph</p>
        </div>
      </div>
   </div>
```

Also updated doc and tests accordingly.
2016-04-27 16:47:51 +02:00
Jeremy Kersten bcba4efd91 [ADD] doc: add doc about dev mode
Remove the debug mode that has been merged into `--dev pdb`
2016-04-27 09:38:35 +02:00
Martin Trigaux 842a8e6952 [IMP] doc: add guidelines warning
To prevent huge chunk of modifications for styling reasons (e.g. mass PEP8
commits)
2016-04-26 14:58:31 +02:00
Martin Trigaux eae045949d [IMP] doc: simpler coding: utf-8
According to PEP-263, the -*- is just a variant "using formats recognized by
popular editors".
2016-04-26 14:58:31 +02:00
Christophe Simonis 2dcbdd0778 [MERGE] forward port of branch saas-10 up to bb8f0f1 2016-04-25 15:48:31 +02:00
Raphael Collet b684f0b521 [IMP] doc: add some basic description of record prefetching 2016-04-25 13:37:12 +02:00
Géry Debongnie d65d251c57 [IMP] base, web: add type=fullscreen to ir_actions
With this commit, actions can have a type=fullscreen.  This means that
the navbar will be hidden, for the action and for all subsequent actions
open in the breadcrumb

There is no real security behind this, this is just a feature for
convenience, so users can bookmark an url an open some action in a way
that they are not distracted by anything.  In short, this is some kind of
light 'kiosk' mode.
2016-04-22 11:03:21 +02:00
Martin Trigaux 171f884bdc [FIX] doc: deprecated statusbar_color
Can still be mentionned in documentation but should not be used in example.
2016-04-18 11:47:43 +02:00
Martin Trigaux fe7d5263a5 [IMP] doc: link to bootstrap alerts
Only muted class is missing
2016-04-18 11:47:43 +02:00