~openerp-community/openobject-server/pheller_address-localization

Viewing all changes in revision 2051.

  • Committer: Phillip Heller
  • Date: 2010-05-07 21:25:03 UTC
  • mfrom: (2050.1.2 server-with-fixes)
  • Revision ID: pheller@me.com-20100507212503-0xm549bh6x9idsya
[IMP] Added address_format text field to res.country, and formatted_address functional field to res.partner, which renders a res.partner.address by evaling the related res.country address_format.  
[IMP] Added a field for a default format to res.company, and a getter function to populate that field, which can be edited from 'Administration/Users/Company's Structure/Comapnies/<Company Name>, "Configuration", "Default Address Format"'  

The Default is equivalent to what currently ships.  Additionally, a format for US addresses has been added to its res.country definition in base_data.xml.  To use this feature,one would simply use something like [[ o.partner_shipping_id.formatted_address ]] within rml files (e.g., addons/sale/report/order.rml).  This would replace the references to the individual address attributes within the rml file.  I will propose a separate merge for all applicable rml files, when I've fully converted and tested them all.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: