Commit Graph
104550 Commits
Author SHA1 Message Date
pvy 65a1c0d060 [FIX] account: the period was wrong as it didn't take into account the 'not due' period 2016-07-13 11:23:43 +02:00
qdp-odoo bf999c168a [IMP] account: added 'form' mode in the action returned by clicking on the 'Journal Items' stat button on payments and bank statements, because it was so boring not being able to see the details or open the account.move from that view 2016-07-13 11:22:10 +02:00
Fabien Pinckaers c1e5ab9b13 [IMP] sale: consistency top menu: a sale order is/was a quotation 2016-07-13 10:32:44 +02:00
Fabien Pinckaers 7016f9131b [IMP] website_recruitment: category Website to make it visible from Customize > Install apps 2016-07-13 10:29:48 +02:00
Thibault Delavallée 8d81344d97 [MERGE] stock submodules: migrate to new API
* Move files and reorganize directories according to guidelines
* Lint and clean code, remove dead code
* Migrate code to the new API

Applied to stock submodules: stock_account, stock_calendar,
stock_landed_costs.

The following modules were already in new API, but cleaned and reorganized:
stock_dropshipping, stock_picking_wave, sale_stock

Two fixes from saas-12 in yaml_import have been included in this branch
because originally developped when fixing issues related to the new API
migration.
2016-07-13 10:00:45 +02:00
qdp-odoo 2d91575b11 [FIX] account: cancelling a bank statement line linked to a payment SEPA or batch deposit should set it back to 'sent' state, not 'posted'. 2016-07-13 10:00:07 +02:00
Jairo Llopis 0529a7f9ba [FIX] tools: extract terms in correct folder
If two addons path have a common part in the folder name (e.g. `/home/alice/dev`
and `/home/alice/devodoo`), the `get_module_from_path` method may match the
wrong folder.
A file `/home/alice/devodoo/bob/models.py` would wrongly match `/home/alice/dev`
path (due to the lack of separator) and the returned module would be `odoo`
(`"odoo/bob/models.py".split('/')[0]`).

In such scenario, the translations of files (code, static folder, report) would
not be included in the exported translation file.

Force the module path to ends with a folder separator to avoid wrong matching.

Closes #12757
2016-07-13 09:43:38 +02:00
Thibault Delavallée 7ad15c3827 [IMP] sale_stock: small code improvements
This module is already migrated. However some code could easily be improved
or cleaned.
2016-07-12 17:53:49 +02:00
Thibault Delavallée d94df45501 [FIX] sale_stock: indentation issue 2016-07-12 17:53:49 +02:00
Thibault Delavallée d56ccae9f1 [CLN] sale_stock: cleaning and linting 2016-07-12 17:53:49 +02:00
Thibault Delavallée 3bf3d15fc5 [REM] sale_stock: unused demo file 2016-07-12 17:53:11 +02:00
Thibault Delavallée b755ee80a5 [MOV] sale_stock: reorganize module 2016-07-12 17:53:10 +02:00
Mansi Trivedi 5beec98ef8 [MIG] stock_calendar: test from yml to unit tests 2016-07-12 17:53:10 +02:00
Thibault Delavallée 4cb0965365 [MIG] stock_calendar: new API 2016-07-12 17:53:10 +02:00
Thibault Delavallée 3f7a950ccb [REF] purchase, stock_calendar: pre migration cleaning
* All methods are converted into an api.multi style (using ids instead of
  a browse record or an id)
* Removed api.v7 methods for two methods defined in purchase and overriden
  in stock_calendar, now used only in a true multi-style (old and new API)
* Moved methods having orderpoint as primary object on the orderpoint model
* Removed unused next_day field on resource.calendar model; it was
  introduced with hacks of resource.calendar, and never used.

The whole override of resource models should be cleaned but will be done
after migration of resource and stock.calendar.
2016-07-12 17:53:10 +02:00
Mansi Trivedi 61039df4b9 [MOV] stock_calendar: reorganize module 2016-07-12 17:53:09 +02:00
Divyesh Makwana 1919945770 [MIG] stock_account: new API 2016-07-12 17:53:07 +02:00
Thibault Delavallée 288e0acca1 [REF] stock_account: pre migration cleaning
* All methods are converted into an api.multi style (using ids instead of
  a browse record or an id)
* Dead code on product.template model: existing method on product.product
  has to be used
* ``_get_accounting_data_for_valuation`` and ``_prepare_account_move_line``
  methods moved on the stock.move model as their primary object is a
  stock move
* Simplified implementation and call parameters of ``_get_price`` of
  account.invoice.line to ease code understanding
2016-07-12 17:52:29 +02:00
mdi-odoo 6a824e4a5e [MOV] stock_account: reorganize module 2016-07-12 17:52:29 +02:00
Thibault Delavallée 8f1e11ab52 [CLN] stock_picking_wave: cleaning and linting 2016-07-12 17:52:29 +02:00
Thibault Delavallée 7a15c6fe8f [CLN] stock_dropshipping: cleaning and linting 2016-07-12 17:52:28 +02:00
Thibault Delavallée 9a84193f9d [MOV] stock_dropshipping: reorganize module 2016-07-12 17:52:28 +02:00
Jainik Patel 904f14120c [MIG] stock_landed_costs: new API 2016-07-12 17:52:28 +02:00
Thibault Delavallée 2ff5d2a650 [REF] stock_landed_costs: pre migration cleaning
* All methods are converted into an api.multi style (using ids instead of
  a browse record or an id)
* Two methods on stock.landed.cost model that work actually on stock.move
  records are moved to the stock.move model
* Unnecessary parameters removed from get_valuation_lines to ease the code
  understanding
2016-07-12 17:52:28 +02:00
Thibault Delavallée 368c2346b6 [MOV] stock_landed_cost: reorganize module 2016-07-12 17:52:27 +02:00
Thibault Delavallée 168807a255 [IMP] product: get_history_price multi to ease migration
This method is used only in stock_account that is about to be migrated
into the new API. To ease the migration the method is converted into
a multi method, using a decorator.
2016-07-12 17:51:28 +02:00
Thibault Delavallée 30b2806e58 [FIX] yaml_import: forward port of saas-12 fixes
fa502dcab8: [FIX] tools: yaml_import: typo
during migration

15835236f2: [FIX] tools: yaml_import: fields
with inverse When importing from yaml do not remove valid values for
computed fields with an inverse method
2016-07-12 17:49:58 +02:00
Ravi Gadhia 631019b865 [MIG] website_membership: migration to new api 2016-07-12 17:25:48 +02:00
Jérome Maes f96b3cd9f9 [MOV] website_membership: module directory organization 2016-07-12 17:25:48 +02:00
Jairo Llopis ee365bbf98 [FIX] modules: choose the right addons path
When launching a server with two similar addons path, e.g.:
- /home/alice/dev
- /home/alice/devodoo

launching the server in dev mode may crash due to the poor matching using
`path.startswith(...)` method which may make `/home/alice/devodoo/bob/main.xml`
match in addons folder `/home/alice/dev` and with a non-exitant local path
`odoo/bob/main.xml`.

Instead of relying on the name, use the `os.path.commonprefix()` method to match
on real paths and avoid partial matching.
commonprefix will only work if the folder name ends with the appropriate
separator (which is not guarantee for a user provided addons-path) so force a
trailing `/` using os.path.join(..., '')`.

Closes #12359
2016-07-12 17:21:50 +02:00
Damien Bouvy d7d07810aa [FIX] hr_timesheet_sheet: no product on employee
Some leftover code from before.

opw-683126

Courtesy of David Coninckx
2016-07-12 16:30:56 +02:00
Aaron Bohy ee4c808d2c [FIX] web: debug_manager: update when coming back with breadcrumbs
Before this rev., the debug manager's state was only updated when pushing a new
action but not when coming back to a previous action using the breadcrumbs.
So when the latter case happened, the debug manager was desynchronized with the
action manager and it allowed to edit an action that wasn't the current action.
2016-07-12 15:30:01 +02:00
Jérome Maes d28e8446da [MIG] website_portal*: migration to new api
Those modules were almost already migrated, this commit
simply modified the import and the xml tags.
2016-07-12 14:29:31 +02:00
Jérome Maes e13f8fa4fe [MOV] website_portal*: module directory organization 2016-07-12 14:29:31 +02:00
Jérome Maes 09b783794e [MIG] website_sale_*: migration to new api
Those module were almost already migrated, this commit simply modified the import and the xml tags.
2016-07-12 14:29:31 +02:00
Jérome Maes c8d238093e [MOV] website_sale_*: directory organization 2016-07-12 14:29:31 +02:00
Vincent Renaville c9b270c9a4 [IMP] l10n_ch: extend minimal chart of account. Was PR #12552. Courtesy of CamptoCamp 2016-07-12 12:15:57 +02:00
Richard Mathot 42cfd81b32 [TYPO] l10n_do: two provinces must have different codes
(spotted by master-nightly)
2016-07-12 11:51:57 +02:00
Jérome Maes 1c8ab58c17 [IMP] website_sale_digital : use read_group for computed fields 2016-07-12 11:43:49 +02:00
Jérome Maes 71a505d37f [MOV] website_sale_digital : reoganize module directory 2016-07-12 11:43:49 +02:00
Jérome Maes 65dcfbbbc9 [MOV] website_rating_project_issue : move files to reorder module 2016-07-12 11:43:49 +02:00
Jérome Maes 28313ab574 [REM] hr_contract : remove unused file 2016-07-12 11:43:48 +02:00
Jérome Maes 96fc908c15 [MIG] website_issue : migrate to new api 2016-07-12 11:43:48 +02:00
Jérome Maes 2e8b4dfb8f [MIG-MOV] website_hr_recruitment : finalize grouping models, and migrate xml and python to new api 2016-07-12 11:43:48 +02:00
Jérome Maes e9b6a1c0db [MOV-MIG] website_hr_recruitment : move some file and migrate some others ot new api 2016-07-12 11:43:48 +02:00
Jérome Maes 3275a90ff0 [MIG] website_customer : migraton to new api 2016-07-12 11:43:48 +02:00
Jérome Maes ea90d4ef0c [MOV] website_customer : move files 2016-07-12 11:43:48 +02:00
Jérome Maes 53b65a51d2 [MIG] website_crm : migration to new api 2016-07-12 11:43:47 +02:00
Jérome Maes 68b5cf0721 [MOV] website_crm : reorganize module directory 2016-07-12 11:43:47 +02:00
Yannick Tivisse 7fca4c2577 [MERGE] l10n_in_hr_payroll: Migration to new API 2016-07-12 09:54:03 +02:00