Browse Source

Port to OpenERP v6

Add seach views for Intrastat product and Intrastat service
Comment prints in the code
Standardize the name of ids
Add "done" button in tree view
Display company_id fields in the interface if the user belongs to "group_multi_company"
pull/79/head^2
Alexis de Lattre 13 years ago
parent
commit
40321cf01d
  1. 1
      intrastat_base/__terp__.py
  2. 0
      intrastat_base/i18n/fr.po
  3. 6
      intrastat_base/intrastat_common.py
  4. 2
      intrastat_base/intrastat_demo.xml
  5. 2
      intrastat_base/security/ir.model.access.csv
  6. 8
      intrastat_base/tax_view.xml

1
intrastat_base/__terp__.py

@ -42,7 +42,6 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
'depends': ['base_vat'],
'init_xml': ['country_data.xml'],
'update_xml': [
'security/ir.model.access.csv',
'product_view.xml',
'country_view.xml',
'tax_view.xml',

0
intrastat_base/i18n/fr_FR.po → intrastat_base/i18n/fr.po

6
intrastat_base/intrastat_common.py

@ -60,10 +60,8 @@ class report_intrastat_common(osv.osv_memory):
def _check_generate_lines(self, cr, uid, intrastat, context=None):
if not intrastat.company_id.currency_id.code:
raise osv.except_osv(_('Error :'), _("The currency code is not set on the currency '%s'.") %intrastat.company_id.currency_id.name)
if not intrastat.currency_id.code == 'EUR':
raise osv.except_osv(_('Error :'), _("The company currency must be 'EUR', but is currently '%s'.") %intrastat.currency_id.code)
if not intrastat.currency_id.name == 'EUR':
raise osv.except_osv(_('Error :'), _("The company currency must be 'EUR', but is currently '%s'.") %intrastat.currency_id.name)
return True

2
intrastat_base/intrastat_demo.xml

@ -13,7 +13,7 @@
<field name="vat">FR58441019213</field>
</record>
<record id="base.res_partner_8" model="res.partner">
<record id="base.res_partner_6" model="res.partner">
<field name="vat">BE0828696437</field>
<field name="supplier">True</field>
</record>

2
intrastat_base/security/ir.model.access.csv

@ -1,2 +0,0 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_report_intrastat_common","Read access on report.intrastat.common","model_report_intrastat_common","base.group_user",1,0,0,0

8
intrastat_base/tax_view.xml

@ -17,8 +17,12 @@
<field name="inherit_id" ref="account.view_tax_form"/>
<field name="arch" type="xml">
<data>
<field name="type_tax_use" position="after">
<field name="exclude_from_intrastat_if_present" />
<field name="active" position="after">
<!-- I put it in a group because this field has a very long label
and I want to avoid reducing the size of the other fields -->
<group colspan="6">
<field name="exclude_from_intrastat_if_present" />
</group>
</field>
</data>
</field>

Loading…
Cancel
Save