Commit Graph

7 Commits

Author SHA1 Message Date
fka-odoo 74eb662420 [FIX] display_name is not compute for non-active partner 2014-06-03 19:04:07 +05:30
Olivier Dony ccc0820348 [FIX] account_report_company: missing index on `display_name`
bzr revid: odo@openerp.com-20140402090537-aozassn5in2qgd92
2014-04-02 11:05:37 +02:00
Olivier Dony 54499cd053 [FIX] account_report_company: avoid including the address in the computed display name
bzr revid: odo@openerp.com-20130813082247-fz1cv55l82j9uo3l
2013-08-13 10:22:47 +02:00
Olivier Dony 2e4aafa7dc [FIX] res.partner: proper store trigger for display name field
That was a stupid oversight, sorry!

bzr revid: odo@openerp.com-20130423130656-celrtr352yht19ro
2013-04-23 15:06:56 +02:00
Olivier Dony b91cd6127a [REVERT] account_report_company: undo override of res.partner.commercial_partner_id field to store it, as the ORM does not support it and it's not strictly necessary
It works when installing the module but would break
everytime another module that inherits from res.partner
is installed/update from command-line (e.g. -i/-u crm),
as account_report_company is low in the dependency graph
so the field is dropped when the ORM notices that
the current field definition is not stored.
This can be solved in trunk by making the field stored
directly in 'base'.

bzr revid: odo@openerp.com-20130420015003-8y48xrb14cjif60w
2013-04-20 03:50:03 +02:00
Olivier Dony 5e2ce8b709 [IMP] account_report_company: add extra stored function field `display_name` on res.partner and use it for sorting
This makes name_search() results, group_by, etc. all behave as expected

bzr revid: odo@openerp.com-20130419165239-15szgi0e686k6mh9
2013-04-19 18:52:39 +02:00
Olivier Dony 8503964216 [IMP] account_report_company: make res.partner.commercial_partner_id field stored, for further reporting needs
This is not strictly necessary, but can be useful for other
modules in order to ease SQL reporting, without even needing
to store a denormalized copy of the "commercial partner" key
on the documents themselves.

Also renamed the Python fiel to something generic since
it now inherits multiple models.

bzr revid: odo@openerp.com-20130419134335-rhsg24f2uuwl3kla
2013-04-19 15:43:35 +02:00