odoo/addons/l10n_ro
Olivier Dony 556e4e76c3 [FIX] l10n_ro: unique constraints on `vat` and `nrc` columns need to be updated for 7.0 model
With the 7.0 model all accounting-related fields are synchronized
from company to contacts (both are res.partner records), so the
unique check is not a trivial unique constraint. It must be updated
to use a *partial unique index* that applies only to "commercial
entities" and not to contacts. The condition for being a commercial
entity is "is_company is true or parent_id is NULL".
If companies have unique vat/nrc numbers, then their contacts
will be consistent because they are automatically synchronized,
so the uniqueness between contacts does not have to be checked.
(The auto-sync is performed by res.partner automatically and covered
by tests in the "base" module)

bzr revid: odo@openerp.com-20130415175258-l15meqin80sbhggu
2013-04-15 19:52:58 +02:00
..
static/src/img [ADD] l10n: add icons in account chart modules (use country flags) 2012-04-02 14:48:43 +02:00
__init__.py Update the l10n_ro module providing the last chart of account and tax template. 2012-12-13 09:37:44 +02:00
__openerp__.py Update the l10n_ro module providing the last chart of account and tax template. 2012-12-13 09:37:44 +02:00
account_chart.xml Update the l10n_ro module providing the last chart of account and tax template. 2012-12-13 09:37:44 +02:00
account_tax_code_template.xml Update the l10n_ro module providing the last chart of account and tax template. 2012-12-13 09:37:44 +02:00
account_tax_template.xml Update the l10n_ro module providing the last chart of account and tax template. 2012-12-13 09:37:44 +02:00
l10n_chart_ro_wizard.xml [FIX] l10n_*: ensure install wizard triggers are in `noupdate` blocks, to avoid spurious wizards at update 2012-11-06 19:16:36 +01:00
partner_view.xml Update the l10n_ro module providing the last chart of account and tax template. 2012-12-13 09:37:44 +02:00
res_partner.py [FIX] l10n_ro: unique constraints on `vat` and `nrc` columns need to be updated for 7.0 model 2013-04-15 19:52:58 +02:00