From f83a0b8b7fa2194b3b98bb1b46deeced73072807 Mon Sep 17 00:00:00 2001 From: Mariam Flayyan Date: Tue, 23 Apr 2019 16:49:35 +0300 Subject: [PATCH] [FIX] fixup! fixup --- base_delivery_carrier_files/__manifest__.py | 2 +- base_delivery_carrier_files/carrier_file_demo.yml | 4 ++-- base_delivery_carrier_files/stock.py | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/base_delivery_carrier_files/__manifest__.py b/base_delivery_carrier_files/__manifest__.py index 2ef91546ba..7557618896 100644 --- a/base_delivery_carrier_files/__manifest__.py +++ b/base_delivery_carrier_files/__manifest__.py @@ -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 : diff --git a/base_delivery_carrier_files/carrier_file_demo.yml b/base_delivery_carrier_files/carrier_file_demo.yml index 5963131bed..91c79616fa 100644 --- a/base_delivery_carrier_files/carrier_file_demo.yml +++ b/base_delivery_carrier_files/carrier_file_demo.yml @@ -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}: diff --git a/base_delivery_carrier_files/stock.py b/base_delivery_carrier_files/stock.py index 31eab3103c..9443b53e5e 100644 --- a/base_delivery_carrier_files/stock.py +++ b/base_delivery_carrier_files/stock.py @@ -22,7 +22,7 @@ from odoo import models, fields, api -class stock_picking(models.Model): +class StockPicking(models.Model): _inherit = "stock.picking" @api.multi @@ -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 @@ -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([