odoo/addons/sale
Olivier Dony 56dbd6078e [FIX] sale: safer inheritance of res.partner form view + no hiding of use_parent_address field
The use_parent_address field is not directly related to the
address type field and was not really meant to be hidden
along with it.

In addition, the div[@name=div_type] and the corresponding
label[@for=type] were duplicated in the embedded form view
inside the `child_ids` field, but that happened later in
the 7.0 series. As a consequence the inherited view must
not rely on the presence of the latter, since some users
may install sales on top of an older version of the base
views. The XPath expressions were therefore modified to
match the first occurrence of these elements in the original
res.partner view, and to match *only* the second occurrence
in the new version of the view. 
This works via a dirty hack relying on the fact that
the `use_parent_address` field is present in the first
occurrence of the div in the original view, but not
in the newer view, so the XPath expression can be made
to match only *one* element in each version of the view.
(Keep in mind that XPath evaluation will always return
results in the order of the document being looked up,
and the ORM only uses the first match. So matching
both nodes was not an option.)

bzr revid: odo@openerp.com-20130429105458-r89mnkx8okdxsdld
2013-04-29 12:54:58 +02:00
..
edi [MERGE] *: improved english wording, suggestions courtesy of OpenERP Community 2012-12-21 17:48:08 +01:00
i18n Launchpad automatic translations update. 2013-04-29 06:04:57 +00:00
process [MERGE]: Merged with lp:openobject-addons 2012-09-19 15:08:42 +05:30
report [FIX]sale_report: change querry so that existing lines with no associated product are still in sales analysis 2013-03-20 12:34:22 +01:00
security [MERGE] *: improved english wording, suggestions courtesy of OpenERP Community 2012-12-21 17:48:08 +01:00
static/src/img
test [FIX] sale: fix incorrect on_change on sale.order.line resetting the UoM field + added test 2013-01-31 19:43:56 +01:00
wizard [FIX] sale: invoicing several sale order lines in batch was not correctly working (only the first order was triggered and opened) + small refactoring 2013-03-26 18:02:02 +01:00
__init__.py [ADD]: Add dependency 2012-07-27 02:26:59 +05:30
__openerp__.py [FIX]sale:string updated 2012-12-19 15:19:42 +05:30
board_sale_view.xml [REM] Dashboard: Removed creatable option (requested by fp) 2012-09-10 11:31:52 +02:00
res_config.py [FIX]purchase/sale_resconfig: fix automatic unticking of box due to onchange 2013-03-22 10:58:45 +01:00
res_config_view.xml [IMP] account_analytic_analysis: added an option to set the template field mandatory on contracts 2012-11-29 17:08:47 +01:00
res_partner.py [IMP] use the openerp namespace. 2012-12-06 15:56:32 +01:00
res_partner_view.xml [FIX] sale: safer inheritance of res.partner form view + no hiding of use_parent_address field 2013-04-29 12:54:58 +02:00
sale.py [MERGE] Sync with 7.0 2013-04-18 19:21:23 +02:00
sale_data.xml [FIX] sale: fixed typo in message, quotation send -> quotation sent. 2013-03-12 15:18:38 +01:00
sale_demo.xml [FIX] 2012-11-15 15:03:37 +01:00
sale_report.xml
sale_sequence.xml
sale_unit_test.xml [IMP]: MOVE PROCUREMENT CHANGES INTO PROCUREMENT.. 2012-09-09 15:41:56 +05:30
sale_view.xml [MERGE] Sync with 7.0 2013-04-18 19:21:23 +02:00
sale_workflow.xml [FIX] sale: put back the button 'View Invoice' on sale orders (removed for no reason) + reorganized files to reduce the diff with trunk 2012-09-20 15:17:11 +02:00