This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Sales Order', () => { | |
context('Workflow Demo', () => { | |
it('Open Sales Menu', () => { | |
cy.openMenu('Sales','sale.sale_menu_root') | |
cy.wait(3000) | |
}) | |
it('Create Quotation', () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import commands.js using ES2015 syntax: | |
import './commands' | |
// Alternatively you can use CommonJS syntax: | |
// require('./commands') | |
before(() => { | |
// log in only once before any of the tests run. | |
// your app will likely set some sort of session cookie. | |
// you'll need to know the name of the cookie(s), which you can find |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*----------------------------------------------------------------- | |
Login | |
Login to odoo using user/ password | |
EX: cy.login() | |
-----------------------------------------------------------------*/ | |
const user = Cypress.env("user") | |
const password = Cypress.env("password") | |
const path = "web/login" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*----------------------------------------------------------------- | |
Login | |
Login to odoo using user/ password | |
EX: cy.login() | |
-----------------------------------------------------------------*/ | |
const user = Cypress.env("user") | |
const password = Cypress.env("password") | |
const path = "web/login" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"baseUrl": "http://localhost:8013", | |
"env": { | |
"user": "[email protected]", | |
"password": "syarif" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
quants = env['stock.quant'].search([]) | |
move_line_ids = [] | |
warning = '' | |
for quant in quants: | |
move_lines = env["stock.move.line"].search([ | |
('product_id', '=', quant.product_id.id), | |
('location_id', '=', quant.location_id.id), | |
('lot_id', '=', quant.lot_id.id), | |
('package_id', '=', quant.package_id.id), | |
('owner_id', '=', quant.owner_id.id), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_create_data(self): | |
# Create a new project with the test | |
test_project = self.env['project.project'].create({ | |
'name': 'TestProject' | |
}) | |
# Add a test task to the project | |
test_project_task = self.env['project.task'].create({ | |
'name': 'ExampleTask', | |
'project_id': test_project.id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from odoo.tests import common | |
class TestProject(common.TransactionCase): | |
def test_create_data(self): | |
# Create a new project with the test | |
test_project = self.env['project.project'].create({ | |
'name': 'TestProject' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from . import test_project |
NewerOlder