Commit Graph

111 Commits

Author SHA1 Message Date
Martin Trigaux dbca34511e [FIX] account: method should return browse records, not set 2014-08-05 09:30:14 +02:00
Christophe Simonis e29a7b7b4c [FIX] account: correct v8 version of map_tax() method of account.fiscal.postion 2014-08-04 19:41:43 +02:00
Olivier Dony d706adba11 [MERGE] Forward-port saas-5 up to 37ba23d 2014-08-04 01:44:30 +02:00
Christophe Simonis b4cbef4333 [FIX] account: res.partner: limit access to "total_invoiced" field to group "group_account_invoice". Use SUPERUSER_ID to access data 2014-08-01 17:29:20 +02:00
jkei 47dd44be43 [FIX] account: typo in get_fiscal_position()
Fixes #971:

File "/Users/keje/src/odoo/addons/account/partner.py", line 107, in get_fiscal_position
    return part.property_account_position.id
NameError: global name 'part' is not defined
2014-07-07 14:48:20 +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
Antony Lesuisse 22f4c315a3 [IMP] automatic fiscal positions for simple cases
Add group of countries res.country.group
Add get_fiscal_position method a method to compute a fiscal position based on company_id, partner_id, delivery_id
The meaning of res.partner.fiscal_position is now a forced a fiscal position.
The default implementation should handle simple cases, like VAT in UE and sales
tax in the US, but the method can be overriden to handle more complex ficals
rules.
2014-06-30 02:12:41 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Olivier Dony f15cbd6520 [MERGE] Forward-port saas-4 bugfixes up to ad4c6ca 2014-06-12 18:54:36 +02:00
Olivier Dony 9f0ecb3572 [MERGE] Forward-port of 7.0 bugfixes up to 4d3a5df 2014-06-12 13:49:32 +02:00
Martin Trigaux b38a129d71 [FIX] account: move translatable tag
The field note on account.fiscal.position and account.fiscal.position.template should not be translatable in classic modules.
The l10n_multilang module is intendend to make chart of accounts multilang and is the place to set translate=True
2014-06-11 14:53:59 +02:00
Gery Debongnie aeebac88d9 [FIX] code cleanup (addon account)
improve the logic of _journal_item_count (removes try/except/pass, use search_count) and remove useless one2many field in res_partner (journal_item_ids)

bzr revid: ged@openerp.com-20140507121310-ya6m71fvs40rf90d
2014-05-07 14:13:10 +02:00
Gery Debongnie a81ba2b1ea [IMP] compute the total invoiced and display it on the stat button for invoices in res_partner form view (addon account)
bzr revid: ged@openerp.com-20140418093756-nxy2rkbyousbsjaf
2014-04-18 11:37:56 +02:00
Gery Debongnie ea23d24e87 [FIX] correct some typos in addon account variable name
bzr revid: ged@openerp.com-20140414093221-qbpxrv2kihsvtafg
2014-04-14 11:32:21 +02:00
Randhir Mayatra rma-openerp b51066b500 [IMP] convert button into stat button for customer
bzr revid: rma@tinyerp.com-20140320134414-mk1ie8okynrtudsq
2014-03-20 19:14:14 +05:30
Gery Debongnie 871c346f5f [FIX] fix a typo (journal_items_ids -> journal_item_ids) in addon accont
bzr revid: ged@openerp.com-20140318123459-uszascvxdbfwyw3g
2014-03-18 13:34:59 +01:00
Gery Debongnie d9ef089939 [FIX] fix a typo and uses the correct type in the invoice_count functional field of res_partner (addon account)
bzr revid: ged@openerp.com-20140318101034-0w72fjd2sxgy963q
2014-03-18 11:10:34 +01:00
Gery Debongnie 649198db8a [IMP] compute the 'invoice_count' and 'journal_item_count' field in one pass instead of two separate calls (addon account)
bzr revid: ged@openerp.com-20140317155926-2l5542cqcaw997hl
2014-03-17 16:59:26 +01:00
Gery Debongnie aac67e8bc5 [IMP] removes the testing field testpercent in res.partner and improves the way the buttons are displayed in form view (addon account)
bzr revid: ged@openerp.com-20140317152828-v2den23s32kzaqxh
2014-03-17 16:28:28 +01:00
Gery Debongnie 6fee78b475 [IMP] improves the way the res_partner fields are displayed in the buttons in form view. Specifically, uses the widget 'statinfo' and some related cleanup (addons account, crm)
bzr revid: ged@openerp.com-20140314140114-9t2piu3cpqkldnbo
2014-03-14 15:01:14 +01:00
Gery Debongnie 3c835279e8 [IMP] removes the field journal_items_stat_button field from the res.partner model (the x2many widget replaces its functionality) and improves the view. Also, adds a new field 'testpercent' to res.partner, only for testing purposes (addon account)
bzr revid: ged@openerp.com-20140313125244-k4zgsil19gk5sjcz
2014-03-13 13:52:44 +01:00
Gery Debongnie b7bc8b3aa4 [IMP] change the partner form view to display new stat button information in addon account/crm
bzr revid: ged@openerp.com-20140312132347-dyu1i3szlh9r7jq9
2014-03-12 14:23:47 +01:00
Denis Ledoux 108eea6524 [MERGE] Forward-port of latest saas-1 bugfixes, up to rev. 8797 rev-id: dle@openerp.com-20131028202715-uinjafcgpnw1nucx
bzr revid: mat@openerp.com-20131028163349-hr0ul2uf18fcvg4b
bzr revid: dle@openerp.com-20131028202944-eddqtgtikjq93nil
2013-10-28 21:29:44 +01:00
Martin Trigaux d5211929b8 [MERGE] forward port of 7.0 until revision 9546 (launchpad_translations_on_behalf_of_openerp-20131028054233-15znliqv2eh2jq0i)
bzr revid: mat@openerp.com-20131028161227-rpv6d0unjmg12jgk
2013-10-28 17:12:27 +01:00
Denis Ledoux a7e05f1af4 [MERGE] Forward-port of latest saas-1 bugfixes, up to rev. 8793 rev-id: dle@openerp.com-20131018124037-v3501acvv4fh1077
bzr revid: dle@openerp.com-20131018125818-1k168nlo2ferj25w
2013-10-18 14:58:18 +02:00
Denis Ledoux 1a555475cc [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9529 rev-id: mat@openerp.com-20131018120428-2vdmdm2th8rz57zr
bzr revid: dle@openerp.com-20131018121236-zp221von16vekthp
2013-10-18 14:12:36 +02:00
Martin Trigaux d36a90b39e [FIX] account: correctly compute debit/credit for partner including previous moves reported to new fiscal year
lp bug: https://launchpad.net/bugs/1219381 fixed

bzr revid: mat@openerp.com-20131015121015-jdwkzv9tjicg2m1u
2013-10-15 14:10:15 +02:00
Nhomar Hernandez 9382f31c7d [FIX] pass correct parameter to compute the balance on partner form with all entries not complete reconciled
lp bug: https://launchpad.net/bugs/1219381 fixed

bzr revid: nhomar@gmail.com-20130901064406-ehfuhwpjq0ti6oed
2013-09-01 02:14:06 -04:30
Quentin (OpenERP) d856e8361b [REF] *: change linked to server revision 4907. Removed deprecated 'view_load' attribute + removed duplicated first argument of property fields which is replaced with 'relation' argument in case where it is really needed (relational fields): indeed this first argument was totally useless for property of float type (for example).
bzr revid: qdp-launchpad@openerp.com-20130624090515-12aeo4k5sz87veqb
2013-06-24 11:05:15 +02:00
Quentin (OpenERP) 33f27b362b [MERGE] forward port of addons v7 up to revision 9045
bzr revid: qdp-launchpad@openerp.com-20130422153449-c62emljfa4a49758
2013-04-22 17:34:49 +02:00
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Olivier Dony 438e1c1daf [FIX] res.partner: Hide commercial-related fields on contacts form + autosync them from parent company
Fixes handling of accounting/invoicing-related fields on partners
that are not "commercial entities" (either marked as "is_company"
or parentless).
The corresponding fields are also hidden from form views on these
partners and replaced by a short sentence and a link to edit the
"master fields" on the commercial entity.
This corresponds to part B of the solution described on bug 1160365.

lp bug: https://launchpad.net/bugs/1160365 fixed

bzr revid: odo@openerp.com-20130407235013-j3tv4uxy46eej43i
2013-04-08 01:50:13 +02:00
Quentin (OpenERP) 87b899445d [FIX] account: improved tooltips and labels for manual reconciliation of accounting entries to be more explicit
bzr revid: qdp-launchpad@openerp.com-20130320135052-uqyuteitr68qiofn
2013-03-20 14:50:52 +01:00
Vo Minh Thu 6072fd11af [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121210111654-0pm3pupnqqeip52n
2012-12-10 12:16:54 +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
Josse Colpaert f67c93855a [IMP] Merge from trunk
bzr revid: jco@openerp.com-20121206110528-mpbuo0q3g4ntvdbz
2012-12-06 12:05:28 +01:00
Josse Colpaert cfd009394d [IMP] Search functions on amounts and dates in partner
bzr revid: jco@openerp.com-20121206110315-ddgp3qxwn3ezl06g
2012-12-06 12:03:15 +01:00
Alexis de Lattre cad4abe56c Merge with addons/trunk revno 8168.
Adapt demo data to the rename of partner XML IDs in server/trunk.

bzr revid: alexis@via.ecp.fr-20121129222645-lm5ujxf4a1a83aoz
2012-11-29 23:26:45 +01:00
Twinkle Christian (OpenERP) 9222f2b039 [IMP]Improve tooltip in contacts
bzr revid: tch@tinyerp.com-20121023120142-smuat2dqf5vomvv8
2012-10-23 17:31:42 +05:30
Fabien Pinckaers 5cd1d8b43b [MERGE] fiscal position, double declaration, courtesy of C2C
bzr revid: fp@tinyerp.com-20120929120124-bt5vu2i97xfwyl6c
2012-09-29 14:01:24 +02:00
Quentin (OpenERP) 8f134d5c85 [IMP/FIX] account, manual reconciliation process
*replaced function get_next_partner() by list_partners_to_reconcile(), which is optmized, more explicit and returns now the result of name_get() (for convenience)
	*removed useless stuff about 'stop_reconcile' in context (replaced by the function has_something_to_reconcile())
	*changed semantic of last_reconciliation_date field. It's now intented to be filled only when the given partner does not have anything remaining to reconcile)

bzr revid: qdp-launchpad@openerp.com-20120918124640-eerh0ait8vt7n7ta
2012-09-18 14:46:40 +02:00
023a93dc8e [FIX] Fiscal positions with same source and destination taxes must be unique
bzr revid: guewen.baconnier@camptocamp.com-20120725065139-scxdml6gclvudgva
2012-07-25 08:51:39 +02:00
Alexis de Lattre 42ffccfa96 Add a "Supplier Payment Term" on res.partner
Add payment term on purchase.order

bzr revid: alexis@via.ecp.fr-20120711111434-ih20ohy81bynn1wd
2012-07-11 13:14:34 +02:00
Alexis de Lattre 432931dda5 Add active field on account.fiscal.position.
Fixes LP bug #768847

lp bug: https://launchpad.net/bugs/768847 fixed

bzr revid: alexis@via.ecp.fr-20110824211943-kcfp6133556zropc
2011-08-24 23:19:43 +02:00
Olivier Dony f36e724804 [IMP] removed remaining method=True params from fields.function
Server revision 3495 odo@openerp.com-20110701232328-flgxulxva70vnyxr
removed the need for passing method=True to function fields.

bzr revid: odo@openerp.com-20110705122857-zvzpamu0n24zst1q
2011-07-05 14:28:57 +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
qdp-launchpad@tinyerp.com 50b7d12b75 [REF] account: removed translate=True on name field of fiscal position (and template) in order to clean the translations
bzr revid: qdp-launchpad@tinyerp.com-20110111105511-zqsj32s7oygq6811
2011-01-11 11:55:11 +01:00
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
uco (OpenERP) 3700e08ed6 [REF]: Refactored some lines from previous commit.
bzr revid: uco@tinyerp.com-20101123113152-0ue71yg9usp1gklx
2010-11-23 17:01:52 +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