Skip to content

Commit

Permalink
[MERGE] forward port branch 10.0 up to 8a9569b
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed Nov 15, 2018
2 parents 6e457c4 + 8a9569b commit 5523e6b
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 13 deletions.
2 changes: 0 additions & 2 deletions addons/account/security/ir.model.access.csv
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ access_account_journal_invoice,account.journal invoice,model_account_journal,acc
access_account_invoice_group_invoice,account.invoice group invoice,model_account_invoice,account.group_account_invoice,1,1,1,1
access_res_currency_account_manager,res.currency account manager,base.model_res_currency,group_account_manager,1,1,1,1
access_res_currency_rate_account_manager,res.currency.rate account manager,base.model_res_currency_rate,group_account_manager,1,1,1,1
access_account_invoice_user,account.invoice user,model_account_invoice,base.group_user,1,0,0,0
access_account_invoice_user,account.invoice.line user,model_account_invoice_line,base.group_user,1,0,0,0
access_account_payment_term_partner_manager,account.payment.term partner manager,model_account_payment_term,base.group_user,1,0,0,0
access_account_payment_term_line_partner_manager,account.payment.term.line partner manager,model_account_payment_term_line,base.group_user,1,0,0,0
access_account_fiscal_position_product_manager,account.fiscal.position account.manager,model_account_fiscal_position,account.group_account_manager,1,1,1,1
Expand Down
8 changes: 4 additions & 4 deletions addons/auth_signup/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ def _get_signup_url_for_action(self, action=None, view_type=None, menu_id=None,
for partner in self:
# when required, make sure the partner has a valid signup token
if self.env.context.get('signup_valid') and not partner.user_ids:
partner.signup_prepare()
partner.sudo().signup_prepare()

route = 'login'
# the parameters to encode for the query
query = dict(db=self.env.cr.dbname)
signup_type = self.env.context.get('signup_force_type_in_url', partner.signup_type or '')
signup_type = self.env.context.get('signup_force_type_in_url', partner.sudo().signup_type or '')
if signup_type:
route = 'reset_password' if signup_type == 'reset' else signup_type

if partner.signup_token and signup_type:
query['token'] = partner.signup_token
if partner.sudo().signup_token and signup_type:
query['token'] = partner.sudo().signup_token
elif partner.user_ids:
query['login'] = partner.user_ids[0].login
else:
Expand Down
2 changes: 2 additions & 0 deletions addons/point_of_sale/static/src/css/pos.css
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ td {
display: flex;
-webkit-flex: 1;
flex: 1;
max-width: -moz-available;
max-width: -webkit-fill-available;
}
.pos .orders {
display: -webkit-flex;
Expand Down
6 changes: 4 additions & 2 deletions addons/pos_restaurant/static/src/js/multiprint.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ models.Orderline = models.Orderline.extend({
}
},
set_dirty: function(dirty) {
this.mp_dirty = dirty;
this.trigger('change',this);
if (this.mp_dirty !== dirty) {
this.mp_dirty = dirty;
this.trigger('change', this);
}
},
get_line_diff_hash: function(){
if (this.get_note()) {
Expand Down
2 changes: 1 addition & 1 deletion addons/product/report/product_pricelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def render_html(self, docids, data=None):
quantities = self._get_quantity(data)
docargs = {
'doc_ids': data.get('ids', data.get('active_ids')),
'doc_model': 'hr.contribution.register',
'doc_model': 'product.pricelist',
'docs': products,
'data': dict(
data,
Expand Down
4 changes: 0 additions & 4 deletions addons/sale_margin/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ def _product_margin(self):
for line in self:
currency = line.order_id.pricelist_id.currency_id
price = line.purchase_price
if not price:
from_cur = line.env.user.company_id.currency_id.with_context(date=line.order_id.date_order)
price = from_cur.compute(line.product_id.standard_price, currency, round=False)

line.margin = currency.round(line.price_subtotal - (price * line.product_uom_qty))


Expand Down
15 changes: 15 additions & 0 deletions doc/cla/corporate/okia.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Belgium, 2018-11-05

Okia SPRL agrees to the terms of the Odoo Corporate Contributor License
Agreement v1.0.

I declare that I am authorized and able to make this agreement and sign this
declaration.

Signed,

Sylvain Van Hoof sylvain@okia.be https://github.com/sylvainvh

List of contributors:

Sylvain Van Hoof sylvain@okia.be https://github.com/sylvainvh

0 comments on commit 5523e6b

Please sign in to comment.