158 KiB
Purchase
Mail Notification Confirm
Modify Buttons
ID: mint_system.purchase.mail_notification_confirm.modify_buttons
<data inherit_id="purchase.mail_notification_confirm" priority="50">
<xpath expr="//t[1]/a/.." position="replace">
<t t-if="record._name == 'purchase.order' and record.env.context.get('is_reminder')">
<a t-att-href="record.get_confirm_url(confirm_type='reminder')" style="margin-right: 10px; background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
We have no update
</a>
<div>&nbsp;</div>
<br/>
<a t-att-href="record.get_update_url()" style="margin-left: 10px; background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
We have to set a new delivery date
</a>
<div>&nbsp;</div>
<div style="margin: 0px; padding: 0px; font-size:13px; text-align: left;">
If you have any questions, please do not hesitate to contact us.
<div>&nbsp;</div>
Best regards,
</div>
</t>
</xpath>
</data>
Edit: snippets/mint_system.purchase.mail_notification_confirm.modify_buttons.xml
Source: snippets/mint_system.purchase.mail_notification_confirm.modify_buttons.xml
Purchase History Tree
Add Date Planned
ID: mint_system.purchase.purchase_history_tree.add_date_planned
<data inherit_id="purchase.purchase_history_tree" priority="50">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="product_id"/>
</xpath>
</data>
Edit: snippets/mint_system.purchase.purchase_history_tree.add_date_planned.xml
Source: snippets/mint_system.purchase.purchase_history_tree.add_date_planned.xml
Add Product Id
ID: mint_system.purchase.purchase_history_tree.add_product_id
<data inherit_id="purchase.purchase_history_tree" priority="50">
<xpath expr="//field[@name='partner_id']&lass="code-block"><data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//div[@name='date_planned_div']/field[@name='date_planned']" position="attributes">
<attribute name="attrs">{'readonly': True}</attribute>
</xpath>
</data>
Edit: snippets/mint_system.purchase.purchase_order_form.date_planned_readonly.xml
Source: snippets/mint_system.purchase.purchase_order_form.date_planned_readonly.xml
Filter Customer Is Company
ID: mint_system.purchase.purchase_order_form.filter_customer_is_company
<data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//group[1]/group[1]/field[2]" position="replace">
<field name="partner_id" widget="res_partner_many2one" domain="[('is_company', '=', True)]" context="{'res_partner_search_mode': 'supplier', 'show_vat': True, 'default_is_company': 'True'}" placeholder="Name, TIN, Email, or Reference"/>
</xpath>
</data>
Edit: snippets/mint_system.purchase.purchase_order_form.filter_customer_is_company.xml
Source: snippets/mint_system.purchase.purchase_order_form.filter_customer_is_company.xml
Format Dates
ID: mint_system.purchase.purchase_order_form.format_dates
<data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//field[@name='date_order']" position="attributes">
<attribute name="options">{"show_time":false}</attribute>
<attribute name="widget">datetime</attribute>
</xpath>
<xpath expr="//field[@name='date_approve']" position="attributes">
<attribute name="options">{"show_time":false}</attribute>
<attribute name="widget">datetime</attribute>
</xpath>
<xpath expr="//tree/field[@name='date_planned']" position="attributes">
<attribute name="options">{"show_time":false}</attribute>
<attribute name="widget">datetime</attribute>
</xpath>
<xpath expr="//div/field[@name='date_planned']" position="attributes">
<attribute name="options">{"show_time":false}</attribute>
<attribute name="widget">datetime</attribute>
</xpath>
</data>
Edit: snippets/mint_system.purchase.purchase_order_form.format_dates.xml
Source: snippets/mint_system.purchase.purchase_order_form.format_dates.xml
Modify Readonly Date Approve
ID: mint_system.purchase.purchase_order_form.modify_readonly_date_approve
<data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//field[@name='date_approve']" position="attributes">
<attribute name="readonly">0</attribute>
</xpath>
</data>
Edit: snippets/mint_system.purchase.purchase_order_form.modify_readonly_date_approve.xml
Source: snippets/mint_system.purchase.purchase_order_form.modify_readonly_date_approve.xml
Modify Readonly Invoice Status
ID: mint_system.purchase.purchase_order_form.modify_readonly_invoice_status
<data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//field[@name='invoice_status']" position="attributes">
<attribute name="attrs">{"readonly": False}</attribute>
</xpath>
</data>
Edit: snippets/mint_system.purchase.purchase_order_form.modify_readonly_invoice_status.xml
Source: snippets/mint_system.purchase.purchase_order_form.modify_readonly_invoice_status.xml
Modify Readonly Partner Ref
ID: mint_system.purchase.purchase_order_form.modify_readonly_partner_ref
<data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//field[@name='partner_ref']" position="attributes">
<attribute name="readonly">0</attribute>
</xpath>
</data>
Edit: snippets/mint_system.purchase.purchase_order_form.modify_readonly_partner_ref.xml
Source: snippets/mint_system.purchase.purchase_order_form.modify_readonly_partner_ref.xml
Modify Readonly Partner Shipping Id
ID: mint_system.purchase.purchase_order_form.modify_readonly_partner_shipping_id
<data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//field[@name='partner_shipping_id']" position="attributes">
<attribute name="readonly">0</attribute>
</xpath>
</data>
Edit: snippets/mint_system.purchase.purchase_order_form.modify_readonly_partner_shipping_id.xml
Source: snippets/mint_system.purchase.purchase_order_form.modify_readonly_partner_shipping_id.xml
Modify Visibility Button Confirm Reminder Mail
ID: mint_system.purchase.purchase_order_form.modify_visibility_button_confirm_reminder_mail
<data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//button[@name='confirm_reminder_mail']" position="attributes">
<attribute name="groups">base.group_user</attribute>
</xpath>
</data>
Edit: snippets/mint_system.purchase.purchase_order_form.modify_visibility_button_confirm_reminder_mail.xml
Source: snippets/mint_system.purchase.purchase_order_form.modify_visibility_button_confirm_reminder_mail.xml
Relocate Product Qty And Uom
ID: mint_system.purchase.purchase_order_form.relocate_product_qty_and_uom
<data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//page[@name='products']//tree/field[@name='product_qty']" position="replace">
</xpath>
<xpath expr="//page[@name='products']//tree/field[@name='product_uom']" position="replace">
</xpath>
<xpath expr="//page[@name='products']//tree/field[@name='name']" position="after">
<field name="product_qty"/>
<field name="product_uom" string="UoM" groups="uom.group_uom" attrs="{'readonly': [('state', 'in', ('purchase', 'done', 'cancel'))],'required': [('display_type', '=', False)]}" force_save="1" optional="show"/>
</xpath>
</data>
Edit: snippets/mint_system.purchase.purchase_order_form.relocate_product_qty_and_uom.xml
Source: snippets/mint_system.purchase.purchase_order_form.relocate_product_qty_and_uom.xml
Remove Optional Qty Received
ID: mint_system.purchase.purchase_order_form.remove_optional_qty_received
<data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//field[@name='qty_received']" position="attributes">
<attribute name="optional"/>
</xpath>
</data>
Edit: snippets/mint_system.purchase.purchase_order_form.remove_optional_qty_received.xml
Source: snippets/mint_system.purchase.purchase_order_form.remove_optional_qty_received.xml
Show Dest Address Id
ID: mint_system.purchase.purchase_order_form.show_dest_address_id
<data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//page[@name='purchase_delivery_invoice']//field[@name='company_id']" position="after">
<field name="