odoo16的速度足够快,要做的网站比较简单,外贸产品展示。对odoo的功能和稳定性要求不高。
odoo16的缺省theme在addons下的theme_default模块里。
1)安装website,website_sale模块,其中选择主题,虽然提示,以后可以改变主题,但装完后找不到改变主题的链接和按钮,后重装,复制选择主题的链接保存,以备用。odoo14在设置里有选择主题的链接。
修改主页内容,odoo示例图像大小有参考价值,各种snippet的示例例图像在,website模块的static/src/img下。
odoo16的snippet定制的每一个选项,有两种状态,打开和关闭,不是无线radio选项。
2)网站的语言选择在下面,在website设置里,选项的主页,不是语言,是指选择哪一页,比如:你自己做一个专门的页面做为主页。语言一旦选择,整个页面作为缺省页显示。
3)使用的godaddy的邮箱,3年一个用户名,几百块钱在DNS里设置的邮箱,可以设置转发50个邮箱,这个功能好,足够用了。自己配一个邮箱,太费劲了。邮箱好配,但安全事故大问题。各种反垃圾程序,反病毒程序。不如买一个,在钱不多的情况下,性价比最高。
4)odoo自15版本开始,网站表单发生了变化,表单模板放在模块website/data/website_data.xml文件里,处理文件在website/controllers/form.py里, 表单发送的数据在 Settings/Technical/Email/Emails下,可以把这个链接放到 Website模块的菜单下。
5) website_sale/views/template.xml. <template id="products_item" name="Products item">去掉价格。 !! <li t-attf-class="o_wsale_my_cart align-self-md-start #{not show_cart and 'd-none'} #{_item_class}"> !!去掉购物筐
6)制作表单,参考 website_hr_recruitment 模块。
7)
$ docker exec -it -u 0 baeldung bash
Using the “-u” option of the docker exec command, we define the id of the root user. We can also use the user name in this command:
$ docker exec -it -u root baeldung bash
In order to check the current user details, we'll run the whoami command:
$ whoami
root