@@ -19,4 +19,3 @@ class TermsController(http.Controller):
|
||||
'company': request.env.company
|
||||
}
|
||||
return request.render("account.account_terms_conditions_page", values)
|
||||
|
||||
|
||||
@@ -60,4 +60,3 @@ class TestSEPAQRCode(AccountTestInvoicingCommon):
|
||||
"""
|
||||
self.sepa_qr_invoice.generate_qr_code()
|
||||
self.assertEqual(self.sepa_qr_invoice.qr_code_method, 'sct_qr', "SEPA QR-code generator should have been chosen for this invoice.")
|
||||
|
||||
|
||||
@@ -15,4 +15,3 @@ def _assign_default_nomeclature_id(cr, registry):
|
||||
company_ids_without_default_nomenclature_id.write({
|
||||
'nomenclature_id': default_nomenclature_id.id,
|
||||
})
|
||||
|
||||
|
||||
@@ -498,4 +498,3 @@ class HrEmployeePrivate(models.Model):
|
||||
|
||||
def _sms_get_number_fields(self):
|
||||
return ['mobile_phone']
|
||||
|
||||
|
||||
@@ -220,4 +220,3 @@ class HrEmployeeBase(models.AbstractModel):
|
||||
# The employees should be working now according to their work schedule
|
||||
working_now += res_employee_ids.ids
|
||||
return working_now
|
||||
|
||||
|
||||
@@ -225,4 +225,3 @@ class Network(Escpos):
|
||||
def __del__(self):
|
||||
""" Close TCP connection """
|
||||
self.device.close()
|
||||
|
||||
|
||||
@@ -47,4 +47,3 @@ class AccountChartTemplate(models.Model):
|
||||
'show_on_dashboard': True
|
||||
}]
|
||||
return res
|
||||
|
||||
|
||||
@@ -7,4 +7,3 @@ class ResPartner(models.Model):
|
||||
_inherit = 'res.partner'
|
||||
|
||||
siret = fields.Char(string='SIRET', size=14)
|
||||
|
||||
|
||||
@@ -40,4 +40,3 @@ def uninstall_hook(cr, registry):
|
||||
pbm_routes.unlink()
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
@@ -79,4 +79,3 @@ class MrpImmediateProduction(models.TransientModel):
|
||||
productions_to_validate = productions_to_validate - productions_not_to_do
|
||||
return productions_to_validate.with_context(skip_immediate=True).button_mark_done()
|
||||
return True
|
||||
|
||||
|
||||
@@ -2,4 +2,3 @@
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import mrp_production
|
||||
|
||||
|
||||
@@ -112,4 +112,3 @@ class TestStockLot(TestStockCommon):
|
||||
# Producing must return a confirmation wizard.
|
||||
self.assertNotEqual(res, None)
|
||||
self.assertEqual(res['res_model'], 'expiry.picking.confirmation')
|
||||
|
||||
|
||||
@@ -41,4 +41,3 @@ class ConfirmExpiry(models.TransientModel):
|
||||
ctx = dict(self._context, skip_expired=True)
|
||||
ctx.pop('default_lot_ids')
|
||||
return self.workorder_id.with_context(ctx).record_production()
|
||||
|
||||
|
||||
@@ -23,4 +23,3 @@ class MrpStockReport(models.TransientModel):
|
||||
if not is_used:
|
||||
is_used = move_line.move_id.repair_id and move_line.produce_line_ids
|
||||
return move_lines, is_used
|
||||
|
||||
|
||||
@@ -197,4 +197,3 @@ class SaleAdvancePaymentInv(models.TransientModel):
|
||||
'taxes_id': [(6, 0, self.deposit_taxes_id.ids)],
|
||||
'company_id': False,
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestRobustness(TransactionCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestRobustness, cls).setUpClass()
|
||||
@@ -220,4 +221,3 @@ class TestRobustness(TransactionCase):
|
||||
'location_id': move2.location_id.id,
|
||||
'location_dest_id': move2.location_dest_id.id,
|
||||
})]})
|
||||
|
||||
|
||||
@@ -71,4 +71,3 @@ class StockBackorderConfirmation(models.TransientModel):
|
||||
.with_context(skip_backorder=True, picking_ids_not_to_backorder=self.pick_ids.ids)\
|
||||
.button_validate()
|
||||
return True
|
||||
|
||||
|
||||
@@ -47,4 +47,3 @@ class StockRulesReport(models.TransientModel):
|
||||
self.ensure_one()
|
||||
data = self._prepare_report_data()
|
||||
return self.env.ref('stock.action_report_stock_rule').report_action(None, data=data)
|
||||
|
||||
|
||||
@@ -30,4 +30,3 @@ class StockLocation(models.Model):
|
||||
if self.usage == 'internal' or (self.usage == 'transit' and self.company_id):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
@@ -70,4 +70,3 @@ class StockMoveLine(models.Model):
|
||||
stock_valuation_layers |= move._create_dropshipped_returned_svl(forced_quantity=abs(diff))
|
||||
|
||||
stock_valuation_layers._validate_accounting_entries()
|
||||
|
||||
|
||||
@@ -2,4 +2,3 @@
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import models
|
||||
|
||||
|
||||
@@ -8,4 +8,3 @@ from . import res_config_settings
|
||||
from . import stock_landed_cost
|
||||
from . import account_move
|
||||
from . import stock_valuation_layer
|
||||
|
||||
|
||||
@@ -8,4 +8,3 @@ class ResCompany(models.Model):
|
||||
_inherit = 'res.company'
|
||||
|
||||
lc_journal_id = fields.Many2one('account.journal')
|
||||
|
||||
|
||||
@@ -8,4 +8,3 @@ class ResConfigSettings(models.TransientModel):
|
||||
_inherit = 'res.config.settings'
|
||||
|
||||
lc_journal_id = fields.Many2one('account.journal', string='Default Journal', related='company_id.lc_journal_id', readonly=False)
|
||||
|
||||
|
||||
@@ -5,9 +5,6 @@ from odoo import fields, models
|
||||
|
||||
|
||||
class StockValuationLayer(models.Model):
|
||||
"""Stock Valuation Layer"""
|
||||
|
||||
_inherit = 'stock.valuation.layer'
|
||||
|
||||
stock_landed_cost_id = fields.Many2one('stock.landed.cost', 'Landed Cost')
|
||||
|
||||
|
||||
@@ -28,4 +28,3 @@ class ConfirmStockSms(models.TransientModel):
|
||||
})
|
||||
pickings_to_validate = self.env['stock.picking'].browse(self.env.context.get('button_validate_picking_ids'))
|
||||
return pickings_to_validate.button_validate()
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from . import test_export
|
||||
|
||||
|
||||
@@ -3,4 +3,3 @@
|
||||
|
||||
from . import event_track_quiz
|
||||
from . import community
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import models, api, fields
|
||||
from odoo.tools.translate import _
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class StockPicking(models.Model):
|
||||
@@ -11,4 +10,3 @@ class StockPicking(models.Model):
|
||||
website_id = fields.Many2one('website', related='sale_id.website_id', string='Website',
|
||||
help='Website this picking belongs to.',
|
||||
store=True, readonly=True)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import test_html, test_gbf
|
||||
|
||||
from . import test_gbf
|
||||
from . import test_html
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import test_export, test_load
|
||||
|
||||
from . import test_export
|
||||
from . import test_load
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import test_inherit
|
||||
|
||||
|
||||
@@ -173,4 +173,3 @@ class TestXMLIDS(common.TransactionCase):
|
||||
self.assertCountEqual(xml_ids.get(baz.id), [
|
||||
'test_inherit.selection__test_new_api_selection__state__baz',
|
||||
])
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import test_populate
|
||||
|
||||
|
||||
@@ -496,4 +496,3 @@ def hex_to_rgb(hx):
|
||||
def rgb_to_hex(rgb):
|
||||
"""Converts a RGB tuple or list to an hexadecimal string"""
|
||||
return '#' + ''.join([(hex(c).split('x')[-1].zfill(2)) for c in rgb])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user