Commit Graph
99161 Commits
Author SHA1 Message Date
Nicolas Lempereur 1942522969 [FIX] base: update File Content for binary field
To distinguish two ir.attachment 'File Content', we base it on the file
size (this I imagine is for efficiency).

This is done by setting bin_size in the context. Doing this, the
returned db_datas field will be the file size of the converted to base64
content (if no filestore).

But this size is returned in string format, so "get_nice_size" (in
openerp/osv/fields.py) which gets this size calculates the length of the
string. e.g: if the size is '2142' get_nice_size will return 4.

This fix solves this by converting the string to an integer, thus
unifying it with the filestore case (where we use os.path.getsize which
return an integer).

Also, the field presenting the issue (FieldBinaryFile) has been changed
so it is always updated even if the size is the same (as it was already
done by 3632949 for FieldBinaryImage widget).

closes #7223
opw-643071
2015-06-23 15:20:33 +02:00
Olivier Dony 9b1aa53f29 [MERGE] Forward-port saas-3 up to 9cdfb0696a 2015-06-23 15:18:00 +02:00
Yannick Tivisse 92474cd706 [IMP] hr, hr_attendance, hr_contract, mrp : menuitems modifs 2015-06-23 15:15:06 +02:00
Yannick Tivisse 928c6beea1 [IMP] marketing_campaign : Remove configurations 2015-06-23 15:15:06 +02:00
Yannick Tivisse 358c42dc10 [IMP] event,membership,website_event_track : Several label renamed 2015-06-23 15:15:06 +02:00
Yannick Tivisse c73ce3b65a [IMP] Move action to the Report or Configuration menuitem when there is only one child.
Example : Expense/Reports/Expenses --> Expense/Reports
Modified modules : association, fleet, hr_attendance, hr_evaluation, hr_expense, hr_holidays
                   hr_recruitment, hr_timesheet, im_livechat, mass_mailing, membership, mrp_operations
                   project, purchase, sale_service
2015-06-23 15:15:06 +02:00
Olivier Dony 9cdfb0696a [MERGE] Forward-port 7.0 up to 6acd5ef91c 2015-06-23 15:13:47 +02:00
Olivier Dony 6acd5ef91c [FIX] expression: internal domain operators require different parsing
Ensure the absence of internal domain operators is correctly
propagated throughout the domain parsing.
2015-06-23 15:04:45 +02:00
Aaron Bohy 6eb330b304 [FIX] account: remove view_nocontent helper inline style
Because:
	- 1) defining inline style is a terrible practice
	- 2) we don't like negative margin
	- 3) it breaks totally the enterprise edition
2015-06-23 14:58:13 +02:00
Mahendra barad 38dc782eaa [RESTRUCTURE]Account : Files Restructure according to new api guideliens 2015-06-23 14:00:43 +02:00
Mahendra barad 75d7bbb46e [REF]Account: Refactoring the account, Change some fields name according to new api guidelines
code improvement

code improvement

payment_method to payment_method_id

writeoff_account to writeoff_account_id

property_account_receivable to property_account_receivable_id

property_account_payable to property_account_payable_id

property_account_expense_categ to property_account_expense_categ_id

property_account_income_categ to property_account_income_categ_id

property_account_expense to property_account_expense_id

property_account_income to property_account_income_id

property_account_expense_categ fix

sale_tax to sale_tax_id and default_sale_tax to default_sale_tax_id

purchase_tax to purchase_tax_id and default_purchase_tax to default_purchase_tax_id

ref_companies to ref_companies_ids

property_account_position to property_account_position_id

property_payment_term to property_payment_term_id

property_supplier_payment_term to property_supplier_payment_term_id

bank_accounts_id to bank_accounts_ids

payment_method fix after rebase

user_type after rebase

payment_method fix after rebase

after rebase

invoice to invoice_id

fix payment_method_id after rebase

code improvement

[IMP]user_type to user_type_id

[IMP]property_stock_account_input_categ, property_stock_account_output_categ to _id

[IMP]improve after rebase

[IMP]fix type

[IMP]Account: code improvement
2015-06-23 14:00:43 +02:00
Jignesh Rathod bfbc22cdc2 [ADD] Sale MRP : ADD test cases of sale mrp with diffrent uom. 2015-06-23 13:47:22 +02:00
Géry Debongnie cba690986f [FIX] mail: fix css to make it compatible with enterprise 2015-06-23 12:52:31 +02:00
Yannick Tivisse a04d0dc93c [IMP] account : Usability improvements
-->Company form view :
- Campany Tagline moved in the header, invisible if empty
- Partner field set in group_no_one
- Account Holder removed from tree view
- Intercompany rules tab/Responsible fields into group_no_one
-->Account res_config form view :
- Charts of account : code and #digits fields removed, as they depends of the country
                               and are configured in the datas
- Use Anglo Saxon checbox : Automatic, removed from the view
- tax_calculation_rounding_method field set automatically in the CoA : Removed
- Manage customer payments and follow-ups are enabled by default, so removed the option

NB : Some fields has been removed from the setting view because of legal issues and
also because they are automatically filled with the CoA.
If they have to be modified in some countries' CoA, they have to be added to the view
in these specific CoA, not is the standard view.
2015-06-23 11:58:18 +02:00
Denis Ledoux d834f37b91 [FIX] project: in saas-6, pivot is not a graph
pivot is no longer a possible type choice
for a graph view.

opw-643153
2015-06-23 11:34:03 +02:00
Martin Geubelle 056987d9ac [IMP] account_asset: needed some improvements (described bellow)
- put Assets Entries and Deferred Entries in group_no_one and put them in adviser
   - in customer invoice, deferred revenue category in group_no_one cause taken from product
   - in form view of asset, depreciation information in an other tab
   - demo data : maintenance contract is a sale type
   - split tree view of asset to display different labels
   - depreciation board : no serial number, next period depreciation --> residual, ...
   - cumulative depreciation takes into account the current period
   - account.move and account.move line : wrong ref and name
   - cron to generates entries of assets (once a month)
   - reporting of assets analysis : remove date col, add unposted_value
2015-06-23 10:32:05 +02:00
Géry Debongnie 3a966957ea [FIX] tests: add missing icon
The menu root "base.menu_tests" is defined in 4 different places, so,
the presence of the icon depends on the order of installation.

This is a quick fix, it works because odoo serve static files of every
addons, even if not installed.  But this is code duplication that should
be removed in an ideal world.
2015-06-23 10:12:02 +02:00
Géry Debongnie c104aae258 [FIX] web: patch community client to use css
this change allows every addons to convert their css to use the
o_web_client class, which works in enterprise edition.
2015-06-23 10:08:47 +02:00
Aaron Bohy 10f4ed2f74 [FIX] website: (un)published stat button css
Make the css rules more specific to take priority over the base ones
defining 'display: block' on every o_stat-text, as in this case, one
must be hidden.
2015-06-23 09:02:06 +02:00
Aaron Bohy 68b61db3a2 [IMP] web: form_view: stat buttons hover style 2015-06-23 09:02:05 +02:00
Aaron Bohy 15c24ab233 [FIX] website_blog: wrong indentation in sass 2015-06-23 09:02:05 +02:00
Stéphane Bidoul 1d5651de5d [IMP] l10n_lu: update for VAT 2015, misc fixes
- remove 2011 tax data
- remove unneeded tax account for 0% taxes
- TVA en amont moved under 421611 instead of 422611
- Fix issues with IB-PA, AP-PA, IP-PA and all taxes with children
- improve structure for tax codes
- fix account type (other -> view)
- add fiscal position mappings
- credit part of IC/EC taxes goes into account 461 instead of 421
- add missing template account for TVA en amont extracommunautaire
- fix a long standing issue with the reconcile flag on accounts
- use TRUE/FALSE instead of t/f in the csv
- added source XLS file with conversion script

Closes #5870
2015-06-22 17:57:23 +02:00
Nicolas Lempereur 6d4a78a2a8 [FIX] membership: update membership state daily
The paid status should be removed automatically once the membership is
expired. Previously, it would only be done when some other models fields
changed (invoice, membership_line, res.partner).

closes #6823
related to opw-640440
2015-06-22 17:33:03 +02:00
qdp-odoo cde1a64ac4 [FIX] l10n_ar is back 2015-06-22 16:35:01 +02:00
Nicolas Lempereur c711f47bad [FIX] mail, crm: be more friendly no lead alias
The domain alias has to be set to be able to set a lead alias which may
not have been enough obvious.

closes #7197
opw-642914
2015-06-22 15:53:03 +02:00
Martin Trigaux ad00496a41 [IMP] website_event: hide technical menus
Field show_menu generates three menus Introduction, Location and Register on the
page of the event on the website.
Generating new menus requires the Technical Features groups so checking this box
would produce and error on non-technical users.
Moreover these menus are hardcoded, making it less useful and may produce
unexpected behaviour (replaces previous menus).
Hide the menus to non-technical users and add help message explaining the
effect of the field.
Fixes #7099
2015-06-22 14:51:19 +02:00
Iris86 2e4cfafd76 [CLA] Esther San Segundo (Iris86) 2015-06-22 14:46:35 +02:00
sve-openerp cd1366a720 [FIX] purchase: Missing log in procurement chatter when deleting a PO line.
When a PO line is deleted, it sets the related procurements in exception.
This fix logs this action in the procurement chatter, for WMS administration
and maintenance purposes.
2015-06-22 14:34:35 +02:00
sve-openerp 91998e3a5a [FIX] mrp: Missing log in procurement chatter when cancelling a MO.
When a MO is cancelled, it sets the related procurements in exception.
This fix logs this action in the procurement chatter, for WMS administration
and maintenance purposes.
2015-06-22 14:34:35 +02:00
Nicolas Martinelli 816be76ee6 [FIX] consider user's timezone in default date proposal
Fixes #6316
2015-06-22 14:31:33 +02:00
Nicolas Martinelli ac4849f9ca [ADD] web: prevent the propagation of context keys containing prefix show_
This decision comes from the following bug:
- Go to Sales -> Quotations, and open any existing quotation in form view (the
  partner must have an address defined)
- Click on the partner
- Click on the stat button "Claims"
- You notice that the address of the partner is included in the search

This is due to the context property show_address which is set to 1 when a
quotation is open. Therefore, it is necessary to filter out this keyword.

Since the prefix "show_" is used for only few context variables, it was decided
to define this pattern as a standard pattern to filter out.

opw-642893
2015-06-22 14:06:11 +02:00
Cedric Snauwaert 2c5739de93 [FIX] account: fix payment on multiple invoices 2015-06-22 13:32:37 +02:00
Odoo Translation Bot 35b2463324 [I18N] Update translation terms from Transifex 2015-06-22 13:21:18 +02:00
Goffin Simon b927f8a864 [FIX] sales: Sales Button
The button sales on the product form only shows the confirmed SO.

opw:642946
2015-06-22 12:07:08 +02:00
qdp-odoo 005ed8d998 [FIX] l10n_ar is back. Ported to new accounting 2015-06-22 11:28:20 +02:00
Goffin Simon 5fcf0f5a6f [FIX] account: change delivery address
The default fiscal position on sale order, is set according to[by priority]:
[1] the delivery
[2] the partner

opw:641883
2015-06-22 09:11:21 +02:00
Olivier Dony 585082de83 [FIX] project_timesheet: no crash when using quick_create to add task work
project_timesheet attempts to create the analytic entries before
calling super() to actually create the task work. This prevents
the create() logic from processing default values for the task
work, possibly causing crashes when the create() call relies
on them to fill in field values.
2015-06-19 18:24:20 +02:00
qdp-odoo 3faa57656a [REV] Revert "[FIX] account: fix payment on multiple invoices" because runbot is red, which isn't a good thing... even more on a Friday!
This reverts commit ce8ad842a2.
2015-06-19 16:42:43 +02:00
Cedric Snauwaert 428072f3b2 [FIX] account: remove gain_loss account from settings 2015-06-19 16:06:10 +02:00
Cedric Snauwaert 4efb35f2af [FIX] account: remove sale/purchase sequence from res_config 2015-06-19 16:06:10 +02:00
Cedric Snauwaert ce8ad842a2 [FIX] account: fix payment on multiple invoices 2015-06-19 16:06:10 +02:00
Cedric Snauwaert 911bdabc07 [FIX] account: fix payment onchange 2015-06-19 16:06:10 +02:00
Cedric Snauwaert d017827c1a [FIX] account: use correct currency symbol for bank_statement_line amount 2015-06-19 16:06:10 +02:00
qdp-odoo 20339a77bd [FIX] sale: taxes were not computed on invoice when created from SO 2015-06-19 15:59:10 +02:00
fka-odoo 66f9ec0249 [FIX] No partner warning message popup on invoice creation. 2015-06-19 14:45:32 +02:00
qdp-odoo b137ede6bb [FIX] add back l10n_ae 2015-06-19 14:04:23 +02:00
qdp-odoo 57d5ef41ba [IMP] account, account_asset: demo data were wrongly assuming that any CoA would have at least a fixed asset account 2015-06-19 14:02:09 +02:00
qdp-odoo 722750c7a5 [IMP] l10n_generic_coa: set a better prefix for bank accounts in the CoA 2015-06-19 14:00:25 +02:00
Goffin Simon 9ef5e40278 [FIX] payment_adyen: _get_adyen_urls
in python, if-else has a lower priority(operator precedence) than %

opw:642886
2015-06-19 13:50:26 +02:00
qsm-odoo 2a40c195a5 [FIX] Many2ManyTags and web_tests
Adapt web_tests to the new many2manytag included in the tour widget_x2many
2015-06-19 13:42:15 +02:00