~camptocamp/openerp-connector-magento/7.0-copy-quotation-move-binding

« back to all changes in this revision

Viewing changes to magentoerpconnect/partner.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:
206
206
class PartnerAdapter(GenericAdapter):
207
207
    _model_name = 'magento.res.partner'
208
208
    _magento_model = 'customer'
 
209
    _admin_path = '/{model}/edit/id/{id}'
209
210
 
210
211
    def _call(self, method, arguments):
211
212
        try: