Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(11)  |  Call(6)  |  Derive(0)  |  Import(5)

src/e/r/erp5-HEAD/product/ERP5/mixin/builder.py   erp5(Download)
  def generateMovementListForStockOptimisation(self, **kw):
    # XXX: unused
    from Products.ERP5Type.Document import newTempMovement
    movement_list = []
    for attribute, method in [('node_uid', 'getDestinationUid'),
        dumb_movement = inventory_item.getObject()
        # Create temporary movement
        movement = newTempMovement(self.getPortalObject(),
                                   str(id_count))
        id_count += 1

src/e/r/erp5-HEAD/product/ERP5/Document/SubscriptionItem.py   erp5(Download)
      of resource, ie. float or unit)
    """
    from Products.ERP5Type.Document import newTempMovement
    result = []
 
          if next_date > stop_date:
            next_date = stop_date
          generated_movement = newTempMovement(self, 'subscription_%s' % id_index)
          generated_movement._edit(  aggregate_value=self,
                                     resource=resource,

src/e/r/erp5-HEAD/product/ERP5/tests/testAccountingRules.py   erp5(Download)
  def stepCreateMatchableInvoiceMovements(self, sequence, **kw) :
    """ Create a temp movement that will be matched by the
      default_invoice_transaction_rule """
    from Products.ERP5Type.Document import newTempMovement
    product_notebook_region_france_movement = newTempMovement(
      sequence.get('invoice'),
    )
    product_barebone_region_france_movement = newTempMovement(
      sequence.get('invoice'),
      'test2',
      resource = sequence.get('barebone').getRelativeUrl(),
  def stepCreateNotMatchableInvoiceMovements(self, sequence, **kw) :
    """ create a temp movement that not any cell could match. """
    from Products.ERP5Type.Document import newTempMovement
    bad_movement1 = newTempMovement(
      sequence.get("invoice"),

src/e/r/erp5-HEAD/product/ERP5/Document/Inventory.py   erp5(Download)
 
    if temp_constructor is None:
      from Products.ERP5Type.Document import newTempMovement
      temp_constructor = newTempMovement
    stop_date = self.getStopDate()