~akretion-team/openerp-connector/connector-magentoconnect-catalog-dess

« back to all changes in this revision

Viewing changes to magentoerpconnect/stock.py

  • Committer: Sébastien Beau
  • Date: 2012-12-07 13:18:05 UTC
  • mfrom: (676.2.39 magentoerpconnect)
  • Revision ID: sebastien.beau@akretion.com-20121207131805-o4tgotytj3ku580m
[MERGE] merge with cleaning branch, please do not forget to update dependency, product-extra-addons, openobject-extention, e-commerce-adddons. 

magentoerpconnect :
- REFACTOR
    - refactor the invoice syncronisation 
        2 modules are available, 1 for using Magento Invoice, one for using OpenERP invoice
        moreover if invoice syncronisation failed try to map if an existing one already exist : fonction => map_magento_order 
    - refactor view for compatibility in multi-e-commerce solution
    - NAME REFACTOR : by default use only name if you need to use the lastname and firstname please first update magentoerpconnect and them install magentoerpconnect_partner_surname. DO IT ON A DATABASE TEST BEFORE. If you have any trouble please open a bug on lp
    - use new api for moving the category and updating the stock information

    ADD
        - add reporting when exporting stock level

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
import xmlrpclib
23
23
 
24
 
from osv import fields,osv
25
 
from tools.translate import _
26
 
from openerp.addons.base_sale_multichannels.sale import \
27
 
    ExternalShippingCreateError
 
24
from openerp.osv.orm import Model
 
25
from openerp.tools.translate import _
 
26
from base_sale_multichannels.sale import ExternalShippingCreateError
28
27
 
29
28
import logging
30
29
_logger = logging.getLogger(__name__)
31
30
 
32
 
class stock_picking(osv.osv):
 
31
class stock_picking(Model):
33
32
 
34
33
    _inherit = "stock.picking"
35
34
 
122
121
        if res:
123
122
            _logger.info("Successfully adding a tracking reference to the shipping with OpenERP id %s and ext id %s in external sale system", id, ext_shipping_id)
124
123
        return True
125
 
 
126
 
stock_picking()