I am using Odoo 16
I want to revise or edit the layout of the form in POS.
the small/little paper comes from the printer every time there is an order via POS
Is it possible to revise it? how? thanks in advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am using Odoo 16
I want to revise or edit the layout of the form in POS.
the small/little paper comes from the printer every time there is an order via POS
Is it possible to revise it? how? thanks in advance.
Hello esperanza,
Using OWL Framework, you can easily inherit Components, Models, and Templates in PoS.
How to inherit PoS Components:
/** @odoo-module */
import Registries from "point_of_sale.Registries"
import ProductScreen from "point_of_sale.ProductScreen"
const ProductScreenInherit = (product_screen) => class extends product_screen {
setup(){
super.setup()
//... your code
}
}
How to inherit PoS Models:
/** @odoo-module */
import Registries from "point_of_sale.Registries"
import { PosGlobalState } from "point_of_sale.models"
const PosGlobalStateInherit = (models) => class extends models {
constructor(obj) {
super(obj);
//... your code
}
}
Registries.Model.extend(PosGlobalState, PosGlobalStateInherit)
How to Inherit PoS Templates:
xml version="1.0" encoding="UTF-8" ?>
<templates id="template" xml:space="preserve">
<t t-inherit="point_of_sale.ProductScreen" t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('rightpane')]" position="inside">
//... your code
To learn more, kindly check this video below:
https://www.youtube.com/watch?v=zQ_iHwpg0Pg
thank you for this! i appreciate it.. will update you soon. God bless
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
Slow product loading times POS 18 ODOO
Resolvido
|
|
2
set. 25
|
1311 | |
|
1
ago. 25
|
1130 | ||
|
1
jul. 25
|
1396 | ||
|
3
jul. 25
|
4924 | ||
Import/Export Excel files
Resolvido
|
|
3
mai. 25
|
2403 |