Initial commit: Odoo 18.0-20251222 extra-addons
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled

This commit is contained in:
tocmo0nlord
2026-03-13 20:43:25 +00:00
parent 36e847a7df
commit adbe430761
9472 changed files with 1265727 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record model="ir.ui.view" id="view_sale_terms_template_search">
<field name="name">sale.terms_template.search</field>
<field name="model">sale.terms_template</field>
<field name="arch" type="xml">
<search string="Terms and conditions Templates">
<field name="name" string="Name" />
</search>
</field>
</record>
<record model="ir.ui.view" id="view_sale_terms_template_form">
<field name="name">sale.terms_template.form</field>
<field name="model">sale.terms_template</field>
<field name="arch" type="xml">
<form string="Terms and conditions Templates">
<sheet>
<widget
name="web_ribbon"
text="Archived"
bg_color="bg-danger"
invisible="active"
/>
<div class="oe_title">
<h1>
<field name="name" placeholder="Name" />
</h1>
</div>
<notebook>
<page name="Terms and Conditions">
<field name="text" nolabel="1" />
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_sale_terms_template_tree">
<field name="name">sale.terms_template.list</field>
<field name="model">sale.terms_template</field>
<field name="priority" eval="6" />
<field name="arch" type="xml">
<list>
<field name="name" string="Name" />
</list>
</field>
</record>
<record model="ir.actions.act_window" id="action_sale_terms_template">
<field name="name">Terms and conditions template</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sale.terms_template</field>
<field name="view_mode">list,form</field>
<field name="view_id" ref="view_sale_terms_template_tree" />
</record>
<menuitem
id="menu_sale_terms_template"
name="Terms and conditions Templates"
parent="sale.menu_sales_config"
action="action_sale_terms_template"
sequence="10"
/>
</odoo>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record model="ir.ui.view" id="view_order_form_terms_template">
<field name="name">sale_order_note_templatesale.order.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<xpath
expr="//group[@name='note_group']/group/field[@name='note']"
position="before"
>
<field
name="terms_template_id"
placeholder="Terms and conditions template"
nolabel="1"
colspan="4"
/>
<group name="terms_group" string="Terms and Conditions">
<field
name="terms_template_id"
placeholder="Terms and conditions template"
nolabel="1"
colspan="4"
readonly="state != 'draft'"
/>
</group>
</xpath>
</field>
</record>
</odoo>