Skip to content

Commit

Permalink
[FIX] fixup! fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
mFlayyan committed Apr 24, 2019
1 parent 7e8425f commit f83a0b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion base_delivery_carrier_files/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'name': 'Base Delivery Carrier Files',
'version': '10.0.1.0.0',
'category': 'Generic Modules/Warehouse',
'description': """
'summary': """
Base module for creation of carrier files (La Poste, TNT Express Shipper, ...).
Files are exported as text (csv, ...).
It contains :
Expand Down
4 changes: 2 additions & 2 deletions base_delivery_carrier_files/carrier_file_demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
property_stock_inventory: location_opening
valuation: real_time
cost_method: average
property_stock_account_input: account.o_expense
property_stock_account_output: account.o_income
property_stock_account_input: o_expense
property_stock_account_output: o_income
description: Ice cream can be mass-produced and thus is widely available in developed parts of the world. Ice cream can be purchased in large cartons (vats and squrounds) from supermarkets and grocery stores, in smaller quantities from ice cream shops, convenience stores, and milk bars, and in individual servings from small carts or vans at public events.
-
!record {model: stock.picking.type, id: outgoing_shipment_type_carrier_file}:
Expand Down
8 changes: 4 additions & 4 deletions base_delivery_carrier_files/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from odoo import models, fields, api


class stock_picking(models.Model):
class StockPicking(models.Model):
_inherit = "stock.picking"

@api.multi
Expand Down Expand Up @@ -68,7 +68,7 @@ def generate_carrier_files(self, auto=True,

@api.multi
def action_done(self):
result = super(stock_picking, self).action_done()
result = super(StockPicking, self).action_done()
self.generate_carrier_files(auto=True)
return result

Expand All @@ -77,12 +77,12 @@ def action_done(self):
help="The file for the delivery carrier has been generated.")


class stock_move(models.Model):
class StockMove(models.Model):
_inherit = 'stock.move'

@api.multi
def write(self, values):
write_result = super(stock_move, self).write(values)
write_result = super(StockMove, self).write(values)
if values.get('state') and values['state'] == 'done':
picking_ids = map(lambda p: p.id, self.mapped('picking_id'))
done_pickings = self.env['stock.picking'].search([
Expand Down

0 comments on commit f83a0b8

Please sign in to comment.