-
-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
51 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,11 +41,6 @@ Configuration | |
Go to Point of Sale's settings page and select a default customer for a | ||
specific PoS configuration. | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
Set the default customer also on the PoS UI. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
|
@@ -70,10 +65,14 @@ Contributors | |
|
||
* Akretion | ||
|
||
* David Beal <[email protected]> | ||
* David Beal <[email protected]> | ||
* Foram Shah <[email protected]> | ||
* FactorLibre: | ||
* Alvaro Rollan | ||
|
||
* Alvaro Rollan | ||
* `Coop IT Easy SC <https://coopiteasy.be>`_: | ||
|
||
* hugues de keyzer | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
* Akretion | ||
|
||
* David Beal <[email protected]> | ||
* David Beal <[email protected]> | ||
* Foram Shah <[email protected]> | ||
* FactorLibre: | ||
* Alvaro Rollan | ||
|
||
* Alvaro Rollan | ||
* `Coop IT Easy SC <https://coopiteasy.be>`_: | ||
|
||
* hugues de keyzer |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** @odoo-module **/ | ||
|
||
import {Order} from "point_of_sale.models"; | ||
import Registries from "point_of_sale.Registries"; | ||
|
||
const DefaultPartnerOrder = (OriginalOrder) => | ||
class extends OriginalOrder { | ||
constructor(obj, options) { | ||
super(...arguments); | ||
const default_partner_id = this.pos.config.default_partner_id; | ||
if (!options.json && default_partner_id) { | ||
this.set_partner(this.pos.db.get_partner_by_id(default_partner_id[0])); | ||
} | ||
} | ||
}; | ||
|
||
Registries.Model.extend(Order, DefaultPartnerOrder); |