summaryrefslogtreecommitdiff
path: root/doc/reference
AgeCommit message (Collapse)Author
2019-09-13[MERGE] forward port branch saas-12.4 up to fe59754c520Christophe Simonis
closes odoo/odoo#36721 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-09-11[MERGE] forward port branch saas-12.3 up to 50e571acf7cChristophe Simonis
closes odoo/odoo#36491 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-09-03[MERGE] forward port branch 12.0 up to 82c0e9b620bChristophe Simonis
2019-09-02[MERGE] forward port branch saas-11.3 up to 79ff916b596Christophe Simonis
2019-09-02[MERGE] forward port branch 11.0 up to 61a85ccf8f9Christophe Simonis
2019-09-02[MERGE] forward port branch saas-15 up to dc934d67ddeChristophe Simonis
2019-09-02[MERGE] forward port branch 10.0 up to c7c68bab842Christophe Simonis
2019-08-30[MERGE] forward port branch 12.0 up to 52f6e38cea8Christophe Simonis
2019-08-29[MERGE] forward port branch saas-11.3 up to ede253f1b2eChristophe Simonis
2019-08-29[MERGE] forward port branch 11.0 up to d61873ac4a3Christophe Simonis
2019-08-29[FIX] doc: explanation for pg_pathRichard Mathot
opw-2060249 closes odoo/odoo#36223 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-08-28[FIX] doc: add parent_of operatorFlorent de Labarre
closes odoo/odoo#32558 Signed-off-by: vfe <Feyensv@users.noreply.github.com>
2019-08-28[IMP] web: remove m2o from supportedTypes in selection widgetMohammed Shekha
currently widget selection is not working in m2o in editable list view and to fix this issue it need a lots of changes to make it work properly, i.e. make '_fetchSpecialRelation' use correct domain for each record, batch requests as much as possible, also make all '_fetchSpecial...' work in the list case. So to avoid major changes remove supportedTypes from selection widget so user can not tempted to apply selection widget on many2one field. task-1871698 closes odoo/odoo#33485 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-08-20[MERGE] forward port branch saas-12.3 up to 6f55fd65da8Christophe Simonis
2019-08-19[MERGE] forward port branch 12.0 up to 32039b2ab44Christophe Simonis
2019-08-19[MERGE] forward port branch saas-11.3 up to 121034f79a6Christophe Simonis
2019-08-19[MERGE] forward port branch 11.0 up to 1e4de19cd49Christophe Simonis
2019-08-14[IMP] doc: add t-name t-extend to QWeb JSSébastien Theys
task-2040835 closes odoo/odoo#35116 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-03[ADD] fields, models: company consistency checkSimon Lejeune
Assigning `check_company=True` to a field will - set a default domain filtering the companies - allow to call `_check_company` on the records to ensure the domain is respected Setting `_check_company_auto = True` on a model will ensure `_check_company` is called at create and write, enforcing the multi company domain. Joint work with Raphael Collet <rco@odoo.com> task-1985992
2019-09-02[IMP] web,mail: kanban progressbar: filter on falsy valuePrakash Prajapati
This rev. makes the part of the progressbar corresponding to falsy records 'alive': the user can now click on it to filter on records whose value is false for the progressbar field. Task 1952430 closes odoo/odoo#35100 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Co-authored-by: Mohammed Shekha <msh@odoo.com> Co-authored-by: Aaron Bohy <aab@odoo.com>
2019-08-23[REF] *,web: list: merge width and width_factor attrsAaron Bohy
Having two attributes for this was probably overkill. We now have a single attribute 'width' which can specify either a fixed width (e.g. '120px') or a factor (e.g. '2.5').
2019-08-21[MERGE] forward port branch saas-12.4 up to f26de445e55Christophe Simonis
2019-08-19[IMP] web_gantt: allow to show thumbnails on ganttMaxLarue
For some fields (especially employees) it is nice to see a picture of the model on the gantt row in order to quicly identify which record is concerned. This is obvious for employees where we display their avatar picture but might be handy for other models as well. This commit introduces this functionality. In order to activate it you should declare a avatars attribute on the gantt arch. It is a python dict which keys are the fields name for which a thumbnail should be displayed (ie: 'employee_id') and the values are the fields on that model that hold the image (ie: 'image_small). If none is defined or the row isn't currently grouped by this field, nothing is displayed. NB: it is expected that the field name (key) is a relational field to another model which has a *image* field. related task 2009563, 2000719, 2024216
2019-08-13[DOC] web: update search view documentation on filters.Mathieu Duckerts-Antoine
Document the changes brought by a previous commit that modifies the date filters functioning. Task ID: 2028787
2019-08-12[IMP] doc: gantt 'form_view_id' attributejem-odoo
Provide documentation for the `form_view_id` attribute on gantt view. Task-2050019 closes odoo/odoo#35590 Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-08-09[IMP] web: m2o/m2m SelectCreateDialog will now open kanban viewMohammed Shekha
- many2one widget in mobile will open kanban view instead of listview when records needs to be selected - Add support of "kanban_view_ref" on many2x fields: For many2one fields, this specific kanban view will be opened when you click on this field. Note that in desktop, the behavior stay unchanged: 'Search More' will open the tree view. For many2many fields, this specific kanban view will be opened when you add a record in mobile. - Add support "selection_mode" in kanban views. This boolean is set to true when you want to use a kaban view to select a record instead of open a record. "selection_mode" is now passed in qweb_context to allow developers to use t-if='selection_mode' in kanban views to show or hide elements; buttons, dropdowns, anchor tags are not necessary when selection_mode is enabled. So those elements can be hidden based on this condition. Useful when kanban view is opened from m2o in mobile environment. Task ID : 1924779
2019-08-07[REF] web: refactor the calendar viewsri-odoo
Improve design and introducing several usability improvements: - Removed customization of an event card, just display event title. - Added popover, popover consist of two sections: 1) Show the title, date and time of an event. Date and time are automatically computed according to the user timing preferences, language and event duration. Can be hidden with hide_date/hide_time attribute respectively. 2) Display all the fields specified inside the <calendar/> element. fields can be specified with a widget and its options. e.g. <field name="name" string="Custom Name" widget="char" options="{}"/> - Show avatar in popover for filters. - Removed hide sidebar feature. - Increase readability using a better color selection. - Better UI in mobile. And, Adapted test cases Task 1919926 Co-authored-by: jat-odoo <jat@openerp.com>
2019-08-08[IMP] web: default groupbys can be given a rankMathieu Duckerts-Antoine
Consider an action with a search view defined by the arch <search> <filter name="gb_foo" context="{'group_by':'foo'}"/> <filter name="gb_bar" context="{'group_by':'bar'}"/> </search> If the action context is { search_defaults_gb_foo: true, search_defaults_gb_bar: true, } the two groupbys will be activated at start but not necessarily in a suitable order. This commit allows to specify the order in which the default groupbys should be activated by giving them a rank. For example { search_defaults_gb_foo: 2, search_defaults_gb_bar: 1, } leads to group first by bar then by foo. The rank number should be chosen between 1 and 99. closes odoo/odoo#35538 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2019-08-07[IMP] *: fix typos in commentsmreficent
closes odoo/odoo#35404 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-02[IMP] *: rename image fieldsSébastien Theys
image_original => image_1920 (now resized to 1920) image_big => image_1024 image_large => image_256 image_medium => image_128 image_small => image_64 image replaced by image_1920 (when writing) or by image_1024 (when displaying what was previously the big size) + add new intermediate format: image_512 PR: #34925
2019-07-22[MERGE] Forward port of 11.0 to saas-11.3 up to eb4700f17f5Martin Trigaux
closes odoo/odoo#35054 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-26[MERGE] forward port branch saas-12.3 up to 40e8b67179fChristophe Simonis
2019-07-25[FIX] web: properly handle (grouped list) pagerGéry Debongnie
when last field is numeric closes odoo/odoo#35176 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-07-24[FIX] web: improve editable list column widthsJulien Mougenot
Changed the way some field types are displayed. Before this commit, column width in a list were calculated according to a given factor (integer), determining their weight. Now, some specific fields have an hardcoded width instead. This task also slightly tweaks some width factors, in order to try to have a better layout in most list views Task 1985916 closes odoo/odoo#35147 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-07-24[MERGE] Forward port of saas-12.2 to saas-12.3 up to 860ab5a1c28baMartin Trigaux
closes odoo/odoo#35119 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-23[FIX] web: allow groupby buttons in list view at any levelGéry Debongnie
The initial implementation of the special group by buttons in list groups only supported the first level of groupby. So, if one grouped a list view by field A, it worked (if A had a groupby defined). However, if we want to group by B/A, this no longer works. opw 2040725 closes odoo/odoo#35090 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-07-23[MERGE] Forward port of 12.0 to saas-12.2 up to 5e4c1b370123deeMartin Trigaux
2019-07-22[MERGE] Forward port of saas-11.3 to 12.0 up to 06f8f046991Martin Trigaux
closes odoo/odoo#35064 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-18[IMP] doc: add some documentation of the attributes operationDhawal Limbuwala
closes odoo/odoo#20818 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-06-28[IMP/REF] accounting-pocalypse yeaaahhLaurent Smet
This commit merges the following models * account.invoice and account.move * account.invoice.line and account.move.line * account.voucher and account.move * account.voucher.line and account.move.line It was the opportunity for a big cleanup of the code, so it also restructures the whole account module, its different models/fields, the tests etc. for a better world and a better code readability. ==== Rationale ==== The rationale of this huge change is that we want journal entries / invoices to be easily edited, and changes reflected in the other model. It's a HUGE feature and very strategic for the fiduciary companies. For example, changing the account of a journal entry needs to be automatically reflected on the related invoice. The same reasoning applies to sale/purchase vouchers. ==== Changes made in features ===== When creating an invoice, you are now creating a journal entry directly. --> The object account.invoice no longer exists. In the same fashion when creating an invoice line, you're now adding journal items directly in the journal entry representing the invoice. If this invoice line has some tax, it may create additional journal items as well. --> The models account.invoice.line & account.invoice.tax no longer exist Identically, when creating a sale/purchase receipt with its lines, you are now creating a journal entry directly and there's no more usability difference between encoding a receipt or an invoice. --> The object account.voucher no longer exists. --> The object account.voucher.line no longer exists. --> The whole account_voucher module no longer exists. Positive side-effects coming from these changes are * draft invoices/bills/sale or purchase receipts now create a draft accounting entry. Validate these objects now simply post its journal entry. That means that draft invoices/bills/sale or purchase receipt can straightforwardly be included in reporting or budgets. * opening a journal entry in form view will now always open the correct view: if it's a sale/purchase journal entry we will have a customer invoice/vendor bill view or a sale/purchase receipt view, whatever the menu we're coming from. * code & business logic simplification. It is also condensed in a single place instead of being partially duplicated on invoices, vouchers and journal entries. There should be no feature loss, except the one allowing to group multiple journal items together based on the same product during the invoice validation. ==== Changes made in models ===== * account.invoice: model removed. Instead, now use account.move with following mapping field (account.invoice) field (account.move) ----------------------- -------------------- name invoice_payment_ref number name reference ref comment narration user_id invoice_user_id amount_ total_company_signed amount_total_signed residual amount_residual state state + invoice_payment_state /!\ selection changed date_invoice invoice_date date_due invoice_date_due sent invoice_sent origin invoice_origin payment_term_id invoice_payment_term_id partner_bank_id invoice_partner_bank_id incoterm_id invoice_incoterm_id vendor_bill_id invoice_vendor_bill_id source_email invoice_source_email vendor_display_name invoice_vendor_display_name invoice_icon invoice_vendor_icon cash_rounding_id invoice_cash_rounding_id sequence_number_next invoice_sequence_number_next sequence_number_next_prefix invoice_sequence_number_next_prefix 'invoices' subset of account.move can be accessed by using the selection field 'type' or one of the many helpers like is_invoice() * account.move: now has a valid state 'cancel' that has to be excluded from all business logic * account.move: field 'amount' renamed into 'amount_total' * account.move: field 'reverse_entry_id' renamed into 'reversed_entry_id' * account.move.line: now has a field 'display_type' that has to be excluded from all business logic, in order to support invoice layouting * account.invoice.line: model removed. Instead, now use account.move.line with following mapping field (account.invoice.line) field (account.move.line) ---------------------------- ------------------------- invoice_id move_id uom_id product_uom_id invoice_line_tax_ids tax_ids account_analytic_id analytic_account_id 'invoice lines' subset of all account.move.line from a journal entry can be accessed by using the boolean field 'exclude_from_invoice_tab' * account.invoice.tax: model removed. Instead, now use account.move.line with following mapping field (account.invoice.tax) field (account.move.line) --------------------------- ------------------------- invoice_id move_id account_analytic_id analytic_account_id amount price_unit base tax_base_amount 'tax lines' subset of all account.move.line from a journal entry can be accessed by using the relational field 'tax_line_id' * account.invoice.confirm: model removed. Instead, now use the 'post()' function of account.move * account.invoice.refund: model removed. Instead, now use account.move.reversal to reverse the entries with the same options as we had for invoices * account.voucher: model removed. Instead, now use account.move of type in ['out_receipt', 'in_receipt] * account.voucher.line: model removed. Instead, now use account.move.line ==== Changes made in functions ==== * on account.move, method _run_post_draft_to_post() renamed into _autopost_draft_entries() * on account.move, method action_account_invoice_payment() renamed into action_invoice_register_payment() * on account.move, method action_invoice_reconcile_to_check() renamed into action_open_matching_suspense_moves() * on account.move, method _get_domain_edition_mode_available() renamed into _get_domain_matching_supsense_moves() * on account.move, method _get_intrastat_country_id() renamed into _get_invoice_intrastat_country_id() * on account.move.line, method _get_domain_for_edition_mode() renamed into _get_suspense_moves_domain() * in account.bank.statement, contextual key 'edition_mode' renamed into 'suspense_moves_mode' Was task 1917430
2019-06-11[IMP] base_geolocalize,web_editor,doc: create map_viewThomas Werland
In order for the map view to work properly: - I moved scss property to a file only scoped to website module. - moved the definiton of "partner_latitude" and "partner_longitude" from base_geolocalise to base/res.partner closes odoo/odoo#32487 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-06-05[IMP] doc: adapt doc to new test asset and JS test file structureRomain Derie
Adapt doc to d7cd97a9b closes odoo/odoo#33921 Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-06-03[IMP] base,doc: add on_create and edit attribute on gantt viewMaxLarue
related task #1929079 closes odoo/odoo#33872 Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-08-02[IMP] doc: add reference to _lt methodMartin Trigaux
Was added at odoo/odoo#31211 closes odoo/odoo#35393 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-01[IMP] doc: remove calls to @api.guess and @api.noguessmreficent
Those two decorators are removed/deprecated since recent commits but some references remained in the documentation. api.guess and api.noguess is deprecated and removed since c552fb7a618 closes odoo/odoo#35332 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-30[IMP] doc: remove calls to @api.multi and @api.oneYenthe666
Those two decorators are removed/deprecated since recent commits but some references remained in the documentation. api.multi is deprecated since https://github.com/odoo/odoo/commit/cc62447a44c2cf4e2edaf8a1f6d94520e799ddd9 api.one was removed with https://github.com/odoo/odoo/commit/407f1f6cdb87a59bbad9f853078d7345cdf9f60c closes odoo/odoo#35261 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-30[REM] doc: js apidocXavier Morel
Breaks doc-building all the time, more advanced ES6 features are not supported by the JS parsing library. closes odoo/odoo#35288 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-07-30[FIX] doc: rST warningXavier Morel
rST wants an empty line after a list.
2019-07-30[REM] doc: autodoc of removed api.* decoratorsXavier Morel
* @one was removed in 407f1f6cdb87a59bbad9f853078d7345cdf9f60c * @v7 and @v8 were removed in c552fb7a618afe2feea2e0358ead9eb6ebff0c94 * @multi was removed in a8767716cfd14abc7f87204d4d180811f663b648
2019-07-29[MERGE] forward port branch saas-12.4 up to cda4f3c308cChristophe Simonis