[MERGE] forward port branch saas-12 up to 84429ab
This commit is contained in:
@@ -100,7 +100,7 @@ class CompanyLDAP(models.Model):
|
||||
_logger.warning('Could not format LDAP filter. Your filter should contain one \'%s\'.')
|
||||
return False
|
||||
try:
|
||||
results = self.query(conf, filter)
|
||||
results = self.query(conf, tools.ustr(filter))
|
||||
|
||||
# Get rid of (None, attrs) for searchResultReference replies
|
||||
results = [i for i in results if i[0]]
|
||||
|
||||
@@ -701,7 +701,7 @@ msgstr "R.S.Z. 4de kwartaal"
|
||||
#. module: l10n_be
|
||||
#: model:account.account.template,name:l10n_be.a4540
|
||||
msgid "ONSS. Arriérés"
|
||||
msgstr ""
|
||||
msgstr "Achterstallige bijdragen RSZ"
|
||||
|
||||
#. module: l10n_be
|
||||
#: model:account.account.template,name:l10n_be.a4553
|
||||
@@ -879,7 +879,7 @@ msgstr "Waardeverminderingen op voorraden"
|
||||
#. module: l10n_be
|
||||
#: model:account.fiscal.position.template,name:l10n_be.fiscal_position_template_4
|
||||
msgid "Régime Cocontractant"
|
||||
msgstr ""
|
||||
msgstr "Medecontractant"
|
||||
|
||||
#. module: l10n_be
|
||||
#: model:account.fiscal.position.template,name:l10n_be.fiscal_position_template_2
|
||||
|
||||
@@ -128,7 +128,8 @@ function make_message (data) {
|
||||
subtype_description: data.subtype_description,
|
||||
is_author: data.author_id && data.author_id[0] === session.partner_id,
|
||||
is_note: data.is_note,
|
||||
is_system_notification: data.message_type === 'notification' && data.model === 'mail.channel',
|
||||
is_system_notification: (data.message_type === 'notification' && data.model === 'mail.channel')
|
||||
|| data.info === 'transient_message',
|
||||
attachment_ids: data.attachment_ids || [],
|
||||
subject: data.subject,
|
||||
email_from: data.email_from,
|
||||
|
||||
@@ -69,30 +69,8 @@
|
||||
<field name="parent_id" eval="ref('mt_mat_assign')"/>
|
||||
<field name="relation_field">category_id</field>
|
||||
</record>
|
||||
|
||||
<record id="equipment_computer" model="maintenance.equipment.category">
|
||||
<field name="name">Computers</field>
|
||||
<field name="alias_id" ref="mail_alias_equipment"/>
|
||||
</record>
|
||||
<record id="equipment_software" model="maintenance.equipment.category">
|
||||
<field name="name">Software</field>
|
||||
<field name="alias_id" ref="mail_alias_equipment"/>
|
||||
</record>
|
||||
<record id="equipment_printer" model="maintenance.equipment.category">
|
||||
<field name="name">Printers</field>
|
||||
<field name="alias_id" ref="mail_alias_equipment"/>
|
||||
</record>
|
||||
|
||||
<record id="equipment_team_maintenance" model="maintenance.team">
|
||||
<field name="name">Internal Maintenance</field>
|
||||
</record>
|
||||
|
||||
<record id="equipment_team_metrology" model="maintenance.team">
|
||||
<field name="name">Metrology</field>
|
||||
</record>
|
||||
|
||||
<record id="equipment_team_subcontractor" model="maintenance.team">
|
||||
<field name="name">Subcontractor</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
@@ -2,7 +2,28 @@
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
|
||||
|
||||
<!-- Maintenance teams -->
|
||||
<record id="equipment_team_metrology" model="maintenance.team">
|
||||
<field name="name">Metrology</field>
|
||||
</record>
|
||||
<record id="equipment_team_subcontractor" model="maintenance.team">
|
||||
<field name="name">Subcontractor</field>
|
||||
</record>
|
||||
|
||||
<!-- Equipment categories -->
|
||||
<record id="equipment_computer" model="maintenance.equipment.category">
|
||||
<field name="name">Computers</field>
|
||||
<field name="alias_id" ref="mail_alias_equipment"/>
|
||||
</record>
|
||||
<record id="equipment_software" model="maintenance.equipment.category">
|
||||
<field name="name">Software</field>
|
||||
<field name="alias_id" ref="mail_alias_equipment"/>
|
||||
</record>
|
||||
<record id="equipment_printer" model="maintenance.equipment.category">
|
||||
<field name="name">Printers</field>
|
||||
<field name="alias_id" ref="mail_alias_equipment"/>
|
||||
</record>
|
||||
<record id="equipment_monitor" model="maintenance.equipment.category">
|
||||
<field name="name">Monitors</field>
|
||||
<field name="technician_user_id" ref="base.user_root"/>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import werkzeug
|
||||
|
||||
from odoo import http
|
||||
from odoo import http, _
|
||||
from odoo.http import request
|
||||
|
||||
|
||||
|
||||
@@ -180,9 +180,7 @@ class SaleOrder(models.Model):
|
||||
"""
|
||||
Trigger the change of fiscal position when the shipping address is modified.
|
||||
"""
|
||||
fiscal_position = self.env['account.fiscal.position'].get_fiscal_position(self.partner_id.id, self.partner_shipping_id.id)
|
||||
if fiscal_position:
|
||||
self.fiscal_position_id = fiscal_position
|
||||
self.fiscal_position_id = self.env['account.fiscal.position'].get_fiscal_position(self.partner_id.id, self.partner_shipping_id.id)
|
||||
return {}
|
||||
|
||||
@api.multi
|
||||
|
||||
@@ -13,4 +13,5 @@ class MailComposeMessage(models.TransientModel):
|
||||
order = self.env['sale.order'].browse([self._context['default_res_id']])
|
||||
if order.state == 'draft':
|
||||
order.state = 'sent'
|
||||
return super(MailComposeMessage, self.with_context(mail_post_autofollow=True)).send_mail(auto_commit=auto_commit)
|
||||
self = self.with_context(mail_post_autofollow=True)
|
||||
return super(MailComposeMessage, self).send_mail(auto_commit=auto_commit)
|
||||
|
||||
@@ -48,7 +48,8 @@ class AccountInvoice(models.Model):
|
||||
'account_id':dacc,
|
||||
'product_id':i_line.product_id.id,
|
||||
'uom_id':i_line.uom_id.id,
|
||||
'account_analytic_id': False,
|
||||
'account_analytic_id': i_line.account_analytic_id.id,
|
||||
'analytic_tag_ids': i_line.analytic_tag_ids.ids and [(6, 0, i_line.analytic_tag_ids.ids)] or False,
|
||||
},
|
||||
|
||||
{
|
||||
@@ -60,7 +61,8 @@ class AccountInvoice(models.Model):
|
||||
'account_id':cacc,
|
||||
'product_id':i_line.product_id.id,
|
||||
'uom_id':i_line.uom_id.id,
|
||||
'account_analytic_id': False,
|
||||
'account_analytic_id': i_line.account_analytic_id.id,
|
||||
'analytic_tag_ids': i_line.analytic_tag_ids.ids and [(6, 0, i_line.analytic_tag_ids.ids)] or False,
|
||||
},
|
||||
]
|
||||
return []
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<field name="inherit_id" ref="account.view_category_property_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<group name="account_property" position="inside">
|
||||
<group name="account_stock_property" string="Account Stock Properties" attrs="{'invisible': [('property_valuation', '=', 'manual_periodic')]}">
|
||||
<group name="account_stock_property" string="Account Stock Properties">
|
||||
<field name="property_stock_account_input_categ_id" domain="[('deprecated', '=', False)]"/>
|
||||
<field name="property_stock_account_output_categ_id" domain="[('deprecated', '=', False)]"/>
|
||||
<field name="property_stock_valuation_account_id" domain="[('deprecated', '=', False)]"/>
|
||||
|
||||
@@ -9,10 +9,11 @@ from odoo.addons.website_mail.controllers.main import _message_post_helper
|
||||
|
||||
|
||||
class sale_quote(http.Controller):
|
||||
@http.route([
|
||||
"/quote/<int:order_id>",
|
||||
"/quote/<int:order_id>/<token>"
|
||||
], type='http', auth="public", website=True)
|
||||
@http.route("/quote/<int:order_id>", type='http', auth="user", website=True)
|
||||
def view_user(self, *args, **kwargs):
|
||||
return self.view(*args, **kwargs)
|
||||
|
||||
@http.route("/quote/<int:order_id>/<token>", type='http', auth="public", website=True)
|
||||
def view(self, order_id, pdf=None, token=None, message=False, **post):
|
||||
# use sudo to allow accessing/viewing orders for public user
|
||||
# only if he knows the private token
|
||||
|
||||
@@ -586,11 +586,8 @@ class WebsiteSale(http.Controller):
|
||||
order.onchange_partner_id()
|
||||
elif mode[1] == 'shipping':
|
||||
order.partner_shipping_id = partner_id
|
||||
order.onchange_partner_shipping_id()
|
||||
|
||||
order.order_line._compute_tax_id()
|
||||
order.message_partner_ids = [(4, partner_id), (3, request.website.partner_id.id)]
|
||||
|
||||
if not errors:
|
||||
return request.redirect(kw.get('callback') or '/shop/checkout')
|
||||
|
||||
@@ -638,6 +635,9 @@ class WebsiteSale(http.Controller):
|
||||
if redirection:
|
||||
return redirection
|
||||
|
||||
|
||||
order.onchange_partner_shipping_id()
|
||||
order.order_line._compute_tax_id()
|
||||
request.session['sale_last_order_id'] = order.id
|
||||
request.website.sale_get_order(update_pricelist=True)
|
||||
extra_step = request.env.ref('website_sale.extra_info_option')
|
||||
|
||||
Reference in New Issue
Block a user