Commit Graph

97 Commits

Author SHA1 Message Date
Pedro M. Baeza 675d09c005 [FIX] fields_view_get super arguments
The context argument needs to be passed as positional argument to avoid issues
when surcharging fields_view_get

Closes #7933
2015-08-27 11:07:11 +02:00
Martin Trigaux 1bac2692e8 [FIX] account_analytic_plans: correct call to account_get
The account_get method has the signature
  def account_get(self,... company_id=None, context=None)

so should use positional argument context=context.
Added missing company_id parameter.

Fixes #4084
2014-12-10 18:46:00 +01:00
Denis Ledoux b6c0e34b7b [FIX] account_analytic_plans: convert_ref method has been removed.
This issue is related to f4e350ca36
2014-10-28 16:19:57 +01:00
Raphael Collet ecd8b5222b [FIX] account.invoice.line: move context to last position in onchange methods
The methods product_id_change() and uos_id_change() have been converted to the
new api, and now use the decorator @multi.  When invoked with the old api, by
convention the methods will take the last argument as the context.  But this
will not work properly for those methods, as the context is passed in another
position.  In order to avoid an argument swap in the api wrapper, we moved the
context to its expected position.

Fixes #1943
2014-09-09 11:50:10 +02:00
Denis Ledoux ae65be2b2a [MERGE] forward port of branch saas-5 up to 0739bc4 2014-08-11 15:58:02 +02:00
Denis Ledoux 81a902a07d [MERGE] forward port of branch 7.0 up to 5f696ba 2014-08-08 16:18:35 +02:00
Hardik Ansodariya e9e376a6de [FIX] account_analytic_plan: correctly check context
The id of the journal is passed in the context. Avoid trying to browse on jounral_id=False
Fixes #821
2014-08-08 10:06:32 +02:00
Denis Ledoux 07f355caee [FIX] account_analytic_plans: _convert_ref takes only 1 arg
Since the convert of account_invoice to the new api.
_convert_ref is defined as a staticmethod in account_invoice.py
2014-07-31 14:28:45 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
sve-odoo 132f1ee986 [FIX] Account analytic plan line name..
..should not be called plan itself.
2014-06-06 08:45:02 +02:00
Denis Ledoux b6255eb55d [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 10005 revid:dle@openerp.com-20140422150710-mr9x3vyq0wcg31l5
bzr revid: dle@openerp.com-20140422162028-2icoebrb5q4tg3t3
2014-04-22 18:20:28 +02:00
Denis Ledoux 64ce8f977d [FIX] account_analytics_plan: for bank statement move, the analytic distribution must not be written on the counterpart move line
bzr revid: dle@openerp.com-20140417132616-w71ctwn0w653yn0v
2014-04-17 15:26:16 +02:00
Christophe Matthieu 9d9e3d2ef8 [IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
bzr revid: chm@openerp.com-20130607113829-1mi6jk18c2v3jjhn
2013-06-07 13:38:29 +02:00
ggh-openerp 3b73e2b2a4 [IMP]Removed space before Exclamation marks [!]
bzr revid: ggh@tinyerp.com-20130429071557-vnxo5nni03vc886j
2013-04-29 12:45:57 +05:30
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Raphael Collet 96ad608854 [IMP] general: use registry[X] instead registry.get(X) when X is dynamic
bzr revid: rco@openerp.com-20130329143720-80pkd4csemlk1aqz
2013-03-29 15:37:20 +01:00
Cedric Snauwaert af3968bb28 [FIX]account_analytic_plans: change in function product_id_change that overwrite another function with same name but name of args was incorrect
bzr revid: csn@openerp.com-20130226083029-buowfdbya6yeo5n0
2013-02-26 09:30:29 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Fabien Pinckaers 64cfc71038 [MERGE] misc fixes addons 10, purchase, account
bzr revid: fp@tinyerp.com-20120926072239-wy398z8cwk0qiq0t
2012-09-26 09:22:39 +02:00
Mayur Maheshwari (OpenERP) ba567b3850 [IMP]purchase : added name field in analytic plan,improve string of dashboard and invoice control, make purchase line editable when analytic distribution is available, added act_window of create invoice for incoming shipment
bzr revid: mma@tinyerp.com-20120917113113-irc6taebmwqrfxys
2012-09-17 17:01:13 +05:30
Antonin Bourguignon b0e8ae4c7d [IMP] error messages
fix errors ending with an exclamation point; use a point instead
remove uniques (or almost) error messages titles, like 'Encoding Error' (1 occurrence in addons), 'Integrity Error' (1 occurrence in addons), 'Report Name' (1 occurrence in addons), 'Value Error' (1 occurrence in addons), 'Wrong Period Code' (1 occurrence in addons); replace these with 'Error'
add newline character after some messages titles, when necessary
fix 'UserError': should be 'User Error'
remove spaces before exclamation marks
add capital letters to messages titles words (e.g.: 'Invalid action' becomes 'Invalid Action')

bzr revid: abo@openerp.com-20120807110616-u3nlnybtgaebro18
2012-08-07 13:06:16 +02:00
Antonin Bourguignon 48e0915804 [IMP] rephrase some error and warning messages in account
remove exclamation marks at the end of messages
remove first person usage ('I' and 'We')
remove unjustified capital letters
rephrase the clumsy form 'No <some attribute> is defined'

bzr revid: abo@openerp.com-20120806154410-kbf9aai2uzq2b0c4
2012-08-06 17:44:10 +02:00
help 41d1135812 [IMP]improved exception warnings in remaining modules as per suggestion
bzr revid: help-20120731133425-2zlm5sakpowuc6rk
2012-07-31 19:04:25 +05:30
Saurang Suthar(OpenERP) c59e7ab9d0 [IMP] Improved warning messages for account* modules
bzr revid: pso@tinyerp.com-20120725113900-sx79bzkhh9812hib
2012-07-25 17:09:00 +05:30
Pinakin Nayi (OpenERP) bff3081834 [IMP]account-warning-msg
bzr revid: pna@tinyerp.com-20120712070631-tat4ke05u0unftfw
2012-07-12 12:36:31 +05:30
Fabien Pinckaers bf9448c7c8 [IMP] cleaning form views
bzr revid: fp@tinyerp.com-20120605175411-ddx99g5kj2dhzzmb
2012-06-05 19:54:11 +02:00
Raphael Collet b41d5bd21e [IMP] account*, l10n*: remove group_extended
bzr revid: rco@openerp.com-20120425134018-07gxnfs8m29nfucj
2012-04-25 15:40:18 +02:00
Kuldeep Joshi (OpenERP) f5e57cca0a [IMP]account_analytic_plans: remove address field from method
bzr revid: kjo@tinyerp.com-20120306055603-tiatrcjisq0f7h45
2012-03-06 11:26:03 +05:30
Quentin (OpenERP) fb1d37b1a8 [MERGE] context propagation in account
bzr revid: qdp-launchpad@openerp.com-20120103123339-r2vtd1r4s99p396w
2012-01-03 13:33:39 +01:00
Bharat (OpenERP) 43c3646206 [FIX] added context arguments in required method of account_analytic_plans/account_analytic_plans.py, analytic_journal_billing_rate/analytic_journal_billing_rate.py, hr_timesheet_invoice/hr_timesheet_invoice.py
bzr revid: bde@tinyerp.com-20111215090730-s64n85bjm5rurfrr
2011-12-15 14:37:30 +05:30
Hardik Ansodariya cbb9b5ba6a [FIX] account : could not create invoice line if account_analytic_default is installed
lp bug: https://launchpad.net/bugs/869841 fixed

bzr revid: bde@tinyerp.com-20111007114237-2u5y7zqii4iv8m5z
2011-10-07 17:12:37 +05:30
Vo Minh Thu 847ddda540 [FIX] changed super(osv,self) to super(the-model,self).
bzr revid: vmt@openerp.com-20110816103248-ufdcbkwh2u6c05u7
2011-08-16 12:32:48 +02:00
Olivier Dony 06fb14130a [IMP] removed method=True params from all fields.function
Server revision 3495 odo@openerp.com-20110701232328-flgxulxva70vnyxr
removed the need for passing method=True to function fields,
so this is the equivalent addons fix, removing it everywhere.
Please be careful from now on, and do not pass it anymore!

bzr revid: odo@openerp.com-20110701234124-a61zl0idvdfz3hyb
2011-07-02 01:41:24 +02:00
pso (OpenERP) 1c4add7450 [IMP] account_analytic_plans: Improved function for amount currency
bzr revid: pso@tinyerp.com-20110506060507-pdm26vbzn9mfbqd5
2011-05-06 11:35:07 +05:30
pso (OpenERP) 0036d65949 [IMP] account_analytic_plans: Added new field percentage, Improved create_analytic_lines and get amount from amount currency of move line
bzr revid: pso@tinyerp.com-20110506052105-t28i1jyn9nf2zbfy
2011-05-06 10:51:05 +05:30
pso (OpenERP) a864885c72 [IMP] account_analytic_plans: Declared object at the starting of fucntion
bzr revid: pso@tinyerp.com-20110415061754-5kkpc3de6tt2cizj
2011-04-15 11:47:54 +05:30
pso (OpenERP) 11644bde68 [IMP] account, account_analytic_plans: Improvements in amount currency func and removed extra spaces
bzr revid: pso@tinyerp.com-20110415060050-mzt5k94o63y8n43r
2011-04-15 11:30:50 +05:30
pso (OpenERP) 9d96add953 [IMP] account, account_analytic_plans: Moved amount currency function from account to analytic plans
bzr revid: pso@tinyerp.com-20110414063606-4ssc3esyxdn1s22w
2011-04-14 12:06:06 +05:30
ARA (OpenERP) a3ac0b2691 [IMP] Usability Issue: Distribution Models Form view and Analytic Account Form view
bzr revid: ara@tinyerp.com-20101222110557-5msgqcxvlng7cju3
2010-12-22 16:35:57 +05:30
Mustufa Rangwala b0f61a9546 [MERGE] merge from trunk addons
bzr revid: mra@mra-laptop-20101214130232-wqsim6966u1hilu9
bzr revid: mra@mra-laptop-20101217043732-ri8dfx38pacpruye
2010-12-17 10:07:32 +05:30
uco (OpenERP) d827b2f6ea [REF]: Added remaining context changes in _constraints. Removed unnecessary checking for context from methods.
bzr revid: uco@tinyerp.com-20101213064309-vg36f1510xv2f8zb
2010-12-13 12:13:09 +05:30
JMA(OpenERP) acee5c69bc [IMP] analytic,account_analytic_plans: analytic lines should only reference non-view analytic accounts
bzr revid: odo@openerp.com-20101210192751-wlic09qc88st2cra
2010-12-10 20:27:51 +01:00
uco (OpenERP) 6dd290e824 [REF]: Replace the condition 'if not context' with 'if context is None'.
bzr revid: uco@tinyerp.com-20101123070505-9i2lrqhgxzaii3zn
2010-11-23 12:35:05 +05:30
uco (OpenERP) 12fcd1be2f [IMP] : Added context=None on methods used for _constraints and replaced context={} with context=None.
bzr revid: uco@tinyerp.com-20101119134801-974ev29j4tu46pq2
2010-11-19 19:18:01 +05:30
vra 4f608437ec [ADD][IMP] account_analytic_plan: added m2o for analytic distribution and replace this with the reference of analytic account object m2o and small improvement in account view.
bzr revid: vra@tinyerp.com-20101012105258-dwxrql2esxp5fss9
2010-10-12 16:22:58 +05:30
psi (Open ERP) faf70e7b3a [IMP] account_analytic_analysis, account_analytic_default, account_analytic_plans: code cleaning
bzr revid: psi@tinyerp.co.in-20101011112550-ygkqmzmuhu1j7dm3
2010-10-11 16:55:50 +05:30
vth fa8bd9305d [REF] account
bzr revid: vth@tinyerp.com-20101011102300-59rukbdh3ps9m2dm
2010-10-11 15:53:00 +05:30
ARA (OpenERP) 772ac664ba [FIX] account analytic plan, account budget, hr_timesheet, project_planning: Fix warning on Openerp TEst
bzr revid: ara@tinyerp.com-20101005070021-1djnjreztc8z6ix5
2010-10-05 12:30:21 +05:30
ARA (OpenERP) c791e55ef6 [IMP] Account: Access rights for Analytic Account (Add analytic group on all modules) where this field appear
bzr revid: ara@tinyerp.com-20101004111344-8rx877ce28g5eigv
2010-10-04 16:43:44 +05:30