~initos.com/openerp-connector-magento/7.0-import_customer_lang

« back to all changes in this revision

Viewing changes to magentoerpconnect/sale.py

  • Committer: Guewen Baconnier
  • Date: 2014-05-26 09:37:00 UTC
  • Revision ID: guewen.baconnier@camptocamp.com-20140526093700-o0i186du7k39724i
Implements Related Actions

A related action can be attached to a job. It is shown to the user as a button on the form view of the jobs.
When the button is used, the related action is called and must return an OpenERP "client action".

Related action in this connector:
* Open the form view of the record that is concerned by the job on export jobs
* Open a browser on Magento's admin page in order to view/edit the record on import jobs

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
class SaleOrderAdapter(GenericAdapter):
212
212
    _model_name = 'magento.sale.order'
213
213
    _magento_model = 'sales_order'
 
214
    _admin_path = '{model}/view/order_id/{id}'
214
215
 
215
216
    def _call(self, method, arguments):
216
217
        try: